Set Special Attributes of Unlocking Method

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

Set special attributes of unlocking methods such as photo capturing and semantics.

API address

POST: /v1.0/smart-lock/devices/{device_id}/opmodes/{opmode_id}/attribute/{attribute}/opmode-attr

Request parameter

Parameter name Type IN Required Description
device_id String uri true The device ID.
opmode_id Long uri true The serial number of a specified unlocking method.
attribute Integer uri true The attribute of a specified unlocking method. Valid values:
  • 1: voice attribute.
  • 2: photo capturing attribute.

Return parameter

Parameter name Type Description
result Boolean The operation result.

Request example

POST: /v1.0/smart-lock/devices/vdevo12454656****/opnodes/1234/attribute/4/opmode-attr

Return example

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

Error code

For more information, see error code.