Last Updated on : 2023-06-15 05:25:23
Send a command of clearing the device data to a specified access control device. After receiving the command, the access control device will clear the relevant device data.
POST: /v1.0/access-control/{device_id}/actions/cleardata
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | uri | true | The ID of a Tuya device. |
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
all | Boolean | false | Clear all the data. | |
person | Boolean | false | Clear the data of persons. | |
face | Boolean | false | Clear the data of faces. | |
card | Boolean | false | Clear the data of card numbers. | |
qrcode | Boolean | false | Clear the data of QR codes. | |
pass_pwd | Boolean | false | Clear the data of access control passwords. | |
other | Boolean | false | Clear other data. |
Parameter name | Type | Description |
---|---|---|
result | CmdIssueResultResponse | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
sn | String | The command record ID. |
POST: /v1.0/access-control/6ce****/actions/cleardata
{
"all": true,
"person": true,
"face": true,
"card": true,
"qrcode": true,
"pass_pwd": true,
"other": true
}
{
"result": {
"sn": "133****"
},
"t": 1561456817168,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback