Modify the room name

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

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.