Disable/Enable Account
Parameter | Description | Required |
---|---|---|
action | disableOrEnableAccount | True |
uid | User id in the group, multiple ids separated by ',' | True |
enable | true ? Disable:Enable | True |
response:
{
"err":0,
"desc":"ERR_NONE"
}
Possible errors:
Response error code | Description | Details |
---|---|---|
0x0006 | ERR_FORMAT_ERROR | parameter error |
0x000B | ERR_NO_PERMISSION | No permission (possible reason: the account does not have permission for this user) |
0x0105 | ERR_NOT_FOUND_USR | Unable to find user |
Special instructions for error codes and descriptive information:
Due to the error code '0x000B' returned by users when batch enabling/disabling accounts, this return contains a special format of error information (as follows), where DemoUsr
in parentheses after ERR_NO_PERMISSION
refers to the first user name who currently does not have permission to operate. The reasons for the lack of permission are as follows:
- If the operator is a manufacturer: the account is not a subordinate of the manufacturer and there are Dataloggers under the account that do not belong to the manufacturer
- If the operator is a Dealer : the account is not a subordinate of the distributor and there are Dataloggers under the account that do not belong to the distributor
{
"err":11,
"desc":"ERR_NO_PERMISSION(DemoUsr)"
}