Contact Us
Log In

Report Device Property

Last Updated on : 2022-05-05 10:00:23

The device reports its property information.

API address

POST: /v1.0/iot-03/3rdcloud/devices/{device_id}/property/report

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe ID of a Tuya device.

Description of body

Parameter nameTypeINRequiredDescription
msg_idStringbodytrueThe unique identifier of a specified request. The length should not exceed 32 characters.
dataObjectbodytrueThe reported content of a specified property.

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result.
codeBooleanThe response code. It is empty when the operation succeeded.
msgStringThe error message if the API call fails. It is empty if the operation succeeded.
successBooleanIndicates whether the operation is successful. Valid values:
  • true: success.
  • false: failure.
tLongThe 13-digit timestamp of a response.

Request example

POST: /v1.0/iot-03/3rdcloud/devices/6cf4171005d11e2ca7****/property/report
  "msg_id": "ed23rty159292****",
  "data": {
    "resolution_ratio": {
      "value": 1080,
      "time": 1592920221212

Return example

    "result": true,
    "t": 1561456817168,
    "success": true

Error code

For more information, see error code.