Disable/Enable Account

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

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:

  1. 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
  2. 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)"
}
Copyright © eybond 2022 all right reserved,powered by Gitbook文档更新时间: 2023-07-18 10:16:33

results matching ""

    No results matching ""