cURL
curl --request POST \ --url https://api.nonce.app/private-api/v1/{workspace_id}/farms/{farm_id}/tasks/batches \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "task_name": "miner.system.reboot", "miner_ids": [ "<string>" ], "params": { "force": true } } '
{ "success": true, "data": [ { "batch_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "task_name": "miner.log.get", "task_count": 10, "created_by": { "type": "user", "id": "user_2xGz1234567890", "name": "John Doe", "avatar": "https://example.com/avatar.png", "metadata": {} }, "created_at": "YYYY-MM-DDTHH:MM:SSZ" } ], "error": null, "meta": { "summary": { "created_count": 123, "skipped_count": 123 }, "skipped": [ { "reason": "no_change", "message": "<string>", "miner_ids": [ "<string>" ] } ] } }
Create a batch task for specified miners with given task type and parameters. Only supports agent specific tasks
Legacy Private API Key for authentication
Task type: Reboot miner system
miner.system.reboot
1 - 100
Reboot parameters
Show child attributes
Successfully created task batches
Indicates if the request was successful
true
Array of items
Error object (null on success)
null