Disable/enable the account

such as, request: http://api.dessmonitor.com/public/?sign=4f12e771c0aa22898b77b58397e14e77f86b7d78&salt=1496932696821&action=disableOrEnableAccount&enable=true&uid=1,2,3&source=1&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

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:

  1. 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
  2. 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)"
}

results matching ""

    No results matching ""