Disable/enable the account
| parameter | description | Required |
|---|---|---|
| action | disableOrEnableAccount | true |
| uid | The user ID in the group, separated by multiple "," | true |
| enable | true ? commission : forbidden | true |
response: No text.
{
"err":0,
"desc":"ERR_NONE"
}
Possible errors:
| Returns an error code | description | Detailed description |
|---|---|---|
| 0x0006 | ERR_FORMAT_ERROR | Parameter error |
| 0x000B | ERR_NO_PERMISSION | No permissions (possible cause: the account does not have permissions to the user) |
| 0x0105 | ERR_NOT_FOUND_USR | User not found |
A special description of the error code and description information:
As users return '0x000B' error codes when enabling/disabling accounts in bulk, The return contains a specially formatted error message (below), Where 'DemoUsr' in parentheses after 'ERR_NO_PERMISSION' refers to the first user name that currently does not have permission to operate,The reasons for not having permissions are as follows:
- If the operator is the manufacturer:The account number is not a subordinate of the manufacturer, and there are data collectors under the account that do not belong to the manufacturer
- If the operator is a distributor:The account number is not subordinate to the distributor and there are data collectors under the account that do not belong to the distributor
{
"err":11,
"desc":"ERR_NO_PERMISSION(DemoUsr)"
}