Last Updated on : 2023-06-20 12:39:05
Update the device information based on the device ID.
PUT: /v1.0/iot-03/3rdcloud/devices/{device_id}
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 |
---|---|---|---|---|
device_name | String | body | false | The name of the specified device, with no more than 50 characters. |
options | Object | body | false | The extension information about the specified device. Valid values:
|
Parameter name | Type | Description |
---|---|---|
result | Boolean | The response 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. |
PUT: /v1.0/iot-03/3rdcloud/devices/6cf4171005d11e2ca7****
{
"device_name": "Test Device",
"options": {
"mac": "48ea63fd****",
"installLocation": "****Jiangdun Road, Xihu District, Hangzhou City",
}
}
{
"result": true,
"t": 1650004025390,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback