Update QR Code

Last Updated on : 2023-06-20 14:54:11

Send a command to a specified elevator controller to update a specified QR code.

API address

PUT: /v1.0/elevator-control/{device_id}/persons/{person_id}/qrcodes/{qr_code}

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe ID of a Tuya device.
person_idStringuritrueThe ID of a specified person.
qr_codeStringuritrueThe QR code to be updated.

Description of body

Parameter nameTypeINRequiredDescription
new_qr_codeString trueThe information about a new QR code.

Return parameter

Parameter nameTypeDescription
resultCmdIssueResultResponseThe returned result.

Description of result

Parameter nameTypeDescription
snStringThe ID of a specified command record.

Request example

PUT: /v1.0/elevator-control/6ce****}/persons/123****/qrcodes/qrcode****
{
  "newQrCode": "qrCode****",
}

Return example

{
    "result": {
        "sn": "133****"
    },
    "t": 1561456817168,
    "success": true
}

Error code

For more information, see error code.