minerstat for developersversion 2.0

Patch
Update worker

Method for editing the worker's information.

/v2/worker

Edit the worker(s)' information and settings.

Parameters

Parameter
Type
Description
user
int
User's ID.
name
string
Name of your worker.
group
string
Group(s) of the worker.
set
object{}
The object of information you want to set for the worker.
 set.value
string
Information you are setting. Possible values: name ip username password notes client config clocktune profitswitch electricityprice consumption
add
object{}
The object of information you want to add to the worker.
 add.value
string
Information you are adding. Possible values: group
remove
object{}
The object of information you want to remove from the worker.
 remove.value
string
Information you are removing. Possible values: group
command
string
Command to execute. Possible values: shutdown reboot restart stop start

Example call

{"name":"Antminer001","remove":{"group":"zone01,pos03"},"add":{"group":"zone02,pos04"}}

Example response

{
 "message": "Worker(s) successfully updated"
}