Unauthorize User

Last Updated on : 2023-06-21 07:12:59download

Unauthorize a specified user from an access control rule.

API address

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

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: Unauthorized the user successfully.
  • false: Failed to unauthorized the user.

Request example

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

Return example

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

Error code

For more information, see error code.