Modify the room name

Last Updated on : 2023-05-22 06:38:13download

Modify the name of a room in the family.

API address

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

Request parameter

Parameter name Type IN Required Description
home_id Long uri true Family ID
room_id Long uri true Room ID

Description of body

Parameter name Type IN Required Description
name String true Room Name

Return parameter

Parameter name Type Description
result Boolean

Request example

PUT: /v1.0/homes/312321/rooms/2341231
{
  "name": "kitchen3"
}

Return example

true

Error code

For more information, see error code.