Modify Home

Last Updated on : 2024-09-10 09:51:51

Modify the basic information about a specified home.

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
home_idLonguritrueThe ID of a home.

Description of body

Parameter nameTypeINRequiredDescription
nameStringbodytrueThe name of a home.
geo_nameStringbodyfalseThe geographical location of a home.
lonDoublebodyfalseThe longitude of a home.
latDoublebodyfalseThe latitude of a home.

Return parameter

Parameter nameTypeDescription
resultBooleantrue 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.