Last Updated on : 2024-04-02 08:54:43download
Based on the home ID, query the basic information about the specified home.
PUT: /v1.0/homes/{home_id}
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| home_id | Long | uri | true | The home ID. |
Description of body
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| name | String | body | true | The name of the specified home. |
| geo_name | String | body | false | The geographical location of the specified home. |
| lon | Double | body | false | The longitude. |
| lat | Double | body | false | The latitude. |
| Parameter name | Type | Description |
|---|---|---|
| result | Boolean | The returned result. Valid values:
|
PUT: /v1.0/homes/319****
{
"geo_name": "Hangzhou, Tuya Smart",
"name": "My Home",
"lat": 30.16,
"lon": 120.5
}
{
"result": true,
"t": 1540616318050,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback