English
English
简体中文
Contact Us
Register
Log In

Add Access Control Authorization

Last Updated on : 2021-12-13 09:04:01download

Add the authorized users to a specified access control rule.

API address

POST: /v1.0/iot-02/access-controls/{access_control_id}/actions/user-bind

Request parameter

Parameter name Type IN Required Description
access_control_id String uri true The ID of a specified access control rule.

Description of body

Parameter name Type IN Required Description
uid String true The ID of a specified user.

Return parameter

Parameter name Type Description
result Boolean The returned result. Valid values:
  • true: Added successfully.
  • false: Failed to add.

Request example

POST: /v1.0/iot-02/access-controls/146304353014959****/actions/user-bind
{ "uid": "bay1617073265368****" }

Return example

{ "result": true, "t": 1637651734297, "success": true }

Error code

For more information, see error code.