Set Duress Alarm

Last Updated on : 2023-12-07 03:34:00download

Set the current unlocking method to trigger a duress alarm.

API address

PUT: /v1.0/devices/{device_id}/door-lock/unlock-types/{unlock_type}/keys/{unlock_no}/hijack

Request parameter

Parameter name Type IN Required Description
device_id String uri true The device ID.
unlock_no Integer uri true The ID of the unlocking method. That is the flag of each unlocking method such as password, fingerprint, and card.
unlock_type String uri true The type of the unlocking method. Valid values:
  • fingerprint: Unlock with fingerprint.
  • password: Unlock with password.
  • card: Unlock with card.

Return parameter

Parameter name Type Description
result Boolean The operation result.

Request example

PUT: /v1.0/devices/vdevo15345926009****/door-lock/unlock-types/card/keys/130/hijack

Return example

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

Error code

For more information, see error code.