Last Updated on : 2023-06-15 05:35:15
The partner cloud reports device data points (DPs). That is, the function properties of the specified device.
POST: /v1.0/cloud/thing/devices/{device_id}/datapoint/report
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | uri | true | The ID of the specified Tuya-enabled device. |
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
data | Object | body | true | The reported content of the specified DP. One or more DP data can be passed in a data field. In the sample request:
|
Parameter name | Type | Description |
---|---|---|
result | FusionResult | The response result. |
Description of result
Parameter name | Type | Description |
---|---|---|
result | Object | The returned result. |
code | String | The response code. It is empty when the request succeeded. |
msg | String | The message that is returned if the request fails. It is empty if the request is successful. |
success | Boolean | Indicates whether the request is successful. Valid values:
|
t | Long | The 13-digit timestamp of a response. |
POST: /v1.0/cloud/thing/devices/6cf4171005d11e2ca7****/datapoint/report
{
"data": {
"101": {
"value": "online",
"time": 1682392142000
},
"119": {
"value": 80,
"time": 1682392142000
}
}
}
{
"result": true,
"t": 1561456817168,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback