Assign Passwords to Device Members

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

Assign the smart lock passwords to device members.

API address

POST: /v1.0/devices/{device_id}/device-lock/users/{user_id}/allocate

Request parameter

Parameter name Type IN Required Description
device_id String uri true The device ID.
user_id String uri true The ID of the device member.

Description of body

Parameter name Type IN Required Description
no String true The serial number of the lock.
type String 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

POST: /v1.0/devices/vdevo15345926009****/device-lock/users/xxx/allocate
{ "no": "30", "type": "card" }

Return example

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

Error code

For more information, see error code.