Remote Unlocking

Last Updated on : 2023-06-15 05:58:49

Implement remote unlocking of a specified access control device.

API address

POST: /v1.0/iot-02/access-controls/devices/{device_id}/actions/open-door

Request parameter

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

Description of body

Parameter name Type IN Required Description
user_id String false The user ID.

Return parameter

Parameter name Type Description
result String The remote unlocking result. Valid values:
  • true: Unlocked successfully.
  • false: Failed to unlock it.

Request example

POST: /v1.0/iot-02/access-controls/devices/81yyy1273174174****/actions/open-door
{ "userId": "281hg1yu2y3****" }

Return example

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

Error code

For more information, see error code.