Bulk Delete Users

Last Updated on : 2023-06-15 05:25:04

Send a deletion command to a specified access control device to delete the specified users in bulk.

API address

DELETE: /v1.0/access-control/{device_id}/persons

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe ID of a Tuya device.

Description of body

Parameter nameTypeINRequiredDescription
person_id_listList trueThe IDs of users to be deleted.

Return parameter

Parameter nameTypeDescription
resultCmdIssueBatchResultResponseThe returned result.

Description of result

Parameter nameTypeDescription
sn_listListThe command record ID.

Request example

DELETE: /v1.0/access-control/6ce****/persons
{
  "person_id_list": [
    "111****",
    "222****"
  ]
}

Return example

{
    "result": {
        "sn_list": [
            "133****",
            "132****"
        ]
    },
    "t": 1561456817168,
    "success": true
}

Error code

For more information, see error code.