https://api.sciener.com/v3/qrCode/delete
Deleting a QR code from the cloud will render the QR code link unusable, and you will no longer be able to retrieve or refresh the QR code data. However, previously displayed QR codes will remain valid for 10 minutes.
Locks that support custom QR code feature values can delete cloud-generated QR codes via the app's Bluetooth or a gateway.
When deleteType=0, the QR code is deleted using the cloud method. In this case, the QR code is only deleted from the cloud; the link will be unusable, and you will no longer be able to retrieve or refresh the QR code data.
When deleteType=1, you need to first use the app SDK to delete the QR code from the lock via Bluetooth, and then call this interface.
When deleteType=2, calling this interface will directly delete the QR code from the lock via the gateway.
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxx61curl --location -g --request POST 'https://api.sciener.com/v3/qrCode/delete' \2--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \3--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \4--data-urlencode 'lockId=163377' \5--data-urlencode 'qrCodeId=34242' \6--data-urlencode 'date=1625025703000'| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | client_id from Create application |
| accessToken | String | Y | Access token,refer to: Get access token |
| lockId | Int | Y | Lock ID, generated by Lock init |
| qrCodeId | Int | Y | QR code ID, generated by Add QR code |
| deleteType | Int | Y | Deletion methods: 1- Delete via APP Bluetooth. You must delete via APP Bluetooth first before calling this interface. 2- Delete remotely via gateway or WiFi lock. If it is a WiFi lock or connected to a gateway, you can send to 2 and directly call this interface to delete from the lock. 0- Cloud method. If left blank, the default is 0, which deletes from the cloud. |
| date | Long | Y | Current time (timestamp in millisecond) |
| Parameter | Type | Description |
|---|---|---|
| errcode | Int | Error code |
| errmsg | String | Error message |
| description | String | Error description |
xxxxxxxxxx51{2"errcode": 0,3"errmsg": "none error message",4"description": "表示成功或是"5}