Modify Home

Last Updated on : 2023-06-01 06:20:19download

Modify the basic information about a specified home.

API address

PUT: /v1.0/homes/{home_id}

Request parameter

Parameter name Type IN Required Description
home_id Long uri true The ID of a home.

Description of body

Parameter name Type IN Required Description
name String body true The name of a home.
geo_name String body false The geographical location of a home.
lon Double body false The longitude of a home.
lat Double body false The latitude of a home.

Return parameter

Parameter name Type Description
result Boolean true is returned when the operation is successful.

Request example

PUT: PUT /v1.0/homes/319****
{ "geo_name": "Hangzhou Tuya Smart", "name": "My Home" "lat": 30.16, "lon": 120.5 }

Return example

{
    "result": true,
    "t": 1540616318050,
    "success": true
}

Error code

For more information, see error code.