Delete Unlocking Methods

Last Updated on : 2023-12-07 03:33:59download

Delete the specified unlocking methods enrolled in the current lock, including the unlocking methods with fingerprint, password, card, and remote control.

API address

DELETE: /v1.0/devices/{device_id}/door-lock/user-types/{user_type}/users/{user_id}/unlock-types/{unlock_type}/keys/{unlock_no}

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.
  • remoteControl: Unlock with remote control.
user_type Integer uri true The type of members. Valid values:
  • 1: home member.
  • 2: non-home member.
user_id String uri true The member ID.

Return parameter

Parameter name Type Description
result Boolean The operation result.

Request example

DELETE: /v1.0/devices/vdevo15345926009****/door-lock/user-types/2/users/xxxx/unlock-types/fingerprint/keys/30

Return example

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

Error code

For more information, see error code.