Last Updated on : 2023-12-07 03:34:02
Delete temporary password
DELETE: /v1.0/devices/{device_id}/door-lock/template/temp-password/{password_id}
Description of body
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| temp_pwd_request | TemplatePwdRequest | body | false | Password Data |
| body | Body | body | true |
Description of temp_pwd_request
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| name | String | false | Temporary password name, if empty, the default name | |
| pwd_id | Long | false | Temporary password number | |
| msg_id | Long | false | Message ID | |
| password | String | false |
| |
| effective_time | Long | false | Effective time (10-digit timestamp) | |
| invalid_time | Long | false | Expiration time (10-digit timestamp) | |
| phone | String | false | Mobile number | |
| type | Integer | false | Password valid type
| |
| time_zone | String | false | Time zone. If periodic function is required, you need to fill in this | |
| bluetooth_symbolic | Boolean | false | Special parameters for Bluetooth door lock with gateway
| |
| schedule_list | List | false | periodic information | |
| sn | String | false | The serial number of the password of the Bluetooth product | |
| check_name | Boolean | false | Whether to check whether the name is repeated
| |
| country_code | String | false | User's country code | |
| iot_uid | String | false | Tuya iot development platform user id,This parameter can be used to send SMS | |
| app_id | Integer | false | Business appId | |
| available_time | Integer | false | User's country code | |
| sms_param_map | Map | false | Set of dynamic parameters when sending SMS | |
| sms_template | String | false | SMS Template | |
| dp_tunnel | Integer | false |
| |
| is_record | Boolean | false | Whether to add records | |
| request_id | Long | false | The business flow number of the requester, usually the id field of the database or other unique identifiers | |
| dev_id_list | List | false | Device ID |
Description of body
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| device_id | String | uri | true | Device ID |
| password_id | Long | uri | true | Password ID |
Description of schedule_list
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| effective_time | Long | false | Start time. Stored in minutes, such as "07:30", the value is 7x60+30=450 | |
| invalid_time | Long | false | End time. Stored in minutes, such as "08:30", the value is 8x60+30=510 | |
| working_day | Integer | false | Week, each value accumulates:
|
| Parameter name | Type | Description |
|---|---|---|
| result | TemplatePwdResponse |
Description of result
| Parameter name | Type | Description |
|---|---|---|
| pwd_id | Long | Temporary password number |
DELETE: /v1.0/devices/6c7129x1yanlxgwx/door-lock/template/temp-password/12345
{
"dpTunnel": 1
}
{
"tid": "c6b6e70e3edd11ed84fd2237f0528b74",
"result": {
},
"t": 1664335776208,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback