Modify the room name

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

Modify the name of a room in the family.

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
home_idLonguritrueFamily ID
room_idLonguritrueRoom ID

Description of body

Parameter nameTypeINRequiredDescription
nameString trueRoom Name

Return parameter

Parameter nameTypeDescription
resultBoolean

Request example

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

Return example

true

Error code

For more information, see error code.