Remote Unlocking

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

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.