Modify the room name

Last Updated on : 2023-06-20 15:36:08download

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.