Last Updated on : 2023-12-07 03:34:01download
Update unlocking methods.
PUT: /v1.0/devices/{device_id}/door-lock/opmodes/{unlock_sn}
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| device_id | String | uri | true | The device ID. |
| unlock_sn | Integer | uri | true | The number of the unlocking method. |
Description of body
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| dp_code | String | false | The standard DP code of the unlocking method. | |
| unlock_name | String | false | The name of the unlocking method. | |
| unlock_attr | Integer | false | The attribute of the unlocking method. Set the value to 1 to represent a special unlocking method. |
|
| notify_info | UnlockNotifyInfo | false | The notification method. |
Description of notify_info
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| app_send | Boolean | false | Indicates whether to send notifications to the app. Valid values:
|
| Parameter name | Type | Description |
|---|---|---|
| result | Boolean |
PUT: /v1.0/devices/vdevo162322644587871/door-lock/opmodes/11
{
"dp_code": "unlock_password",
"unlock_name": "newOne",
"unlock_attr": 1,
"notify_info": {
"app_send": 1
}
}
{
"result": true,
"t": 1624597643939,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback