Bulk Delete QR Codes

Last Updated on : 2023-06-20 14:54:13download

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

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe ID of a Tuya device.

Description of body

Parameter nameTypeINRequiredDescription
qrcode_del_listList trueThe list of QR codes to be deleted in bulk.

Description of qrcode_del_list

Parameter nameTypeINRequiredDescription
person_idString trueTuya user ID.
qr_codeString trueThe QR code 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/qrcodes
{
  "qrcode_del_list": [
    {
      "person_id": "123****",
      "qr_code": "qrCode****"
    },
    {
      "person_id": "123****",
      "qr_code": "qrCode****"
    }
  ]
}

Return example

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

Error code

For more information, see error code.