Last Updated on : 2024-09-10 01:49:17
Based on the device ID, modify the basic properties of the specified device. You can modify information such as the device name and icon, as well as latitude and longitude.
POST: /v2.0/cloud/thing/{device_id}/attribute
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | path | true | The device ID. |
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
type | Integer | body | true | The type of the basic properties. Valid values:
|
data | String | body | true | The data. |
Parameter name | Type | Description |
---|---|---|
result | Boolean | Indicates whether the operation is successful. Valid values:
|
success | Boolean | Indicates whether the API is called successfully. Valid values:
|
t | Long | The timestamp. |
tid | String | The link ID. |
POST: /v2.0/cloud/thing/6c19224514c02f7490****/attribute
{
"type": 1,
"data": "Main Bedroom Light"
}
{
"tid": "b8a2b49abbbc11eda71e169efc83a172",
"result": true,
"t": 1678065474602,
"success": true
}
For more information, see error code.
For more information, see Limits on API Request Frequency.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback