@@ -1275,17 +1275,18 @@ starts a free compute job and returns jobId if succesfull
12751275
12761276#### Parameters
12771277
1278- | name | type | required | description |
1279- | --------------- | ------ | -------- | ----------------------------------------- |
1280- | command | string | v | command name |
1281- | node | string | | if not present it means current node |
1282- | consumerAddress | string | v | consumer address |
1283- | signature | string | v | signature (msg=String(nonce) ) |
1284- | nonce | string | v | nonce for the request |
1285- | datasets | object | | list of ComputeAsset to be used as inputs |
1286- | algorithm | object | | ComputeAlgorithm definition |
1287- | environment | string | v | compute environment to use |
1288- | resources | object | | optional list of required resources |
1278+ | name | type | required | description |
1279+ | --------------- | ------ | -------- | -------------------------------------------------------- |
1280+ | command | string | v | command name |
1281+ | node | string | | if not present it means current node |
1282+ | consumerAddress | string | v | consumer address |
1283+ | signature | string | v | signature (msg=String(nonce) ) |
1284+ | nonce | string | v | nonce for the request |
1285+ | datasets | object | | list of ComputeAsset to be used as inputs |
1286+ | algorithm | object | | ComputeAlgorithm definition |
1287+ | environment | string | v | compute environment to use |
1288+ | resources | object | | optional list of required resources |
1289+ | metadata | object | | optional metadata for the job, data provided by the user |
12891290
12901291#### Request
12911292
@@ -1300,7 +1301,8 @@ starts a free compute job and returns jobId if succesfull
13001301 "signature" : " 123" ,
13011302 "nonce" : 1 ,
13021303 "environment" : " 0x7d187e4c751367be694497ead35e2937ece3c7f3b325dcb4f7571e5972d092bd-0xbeaf12703d708f39ef98c3d8939ce458553254176dbb69fe83d535883c4cee38" ,
1303- "resources" : [{ "id" : " cpu" , "amount" : 1 }]
1304+ "resources" : [{ "id" : " cpu" , "amount" : 1 }],
1305+ "metadata" : { "key" : " value" }
13041306}
13051307```
13061308
@@ -1324,7 +1326,8 @@ starts a free compute job and returns jobId if succesfull
13241326 { "id" : " ram" , "amount" : 1000000000 },
13251327 { "id" : " disk" , "amount" : 0 }
13261328 ],
1327- "isFree" : true
1329+ "isFree" : true ,
1330+ "metadata" : { "key" : " value" }
13281331 }
13291332]
13301333```
@@ -1338,6 +1341,7 @@ starts a free compute job and returns jobId if succesfull
13381341returns job status
13391342
13401343#### Parameters
1344+
13411345Required at least one of the following parameters:
13421346
13431347| name | type | required | description |
@@ -1378,7 +1382,8 @@ Required at least one of the following parameters:
13781382 "amount" : 1000000000
13791383 }
13801384 ],
1381- "isFree" : true
1385+ "isFree" : true ,
1386+ "metadata" : { "key" : " value" }
13821387 }
13831388]
13841389```
0 commit comments