English
English
简体中文
Contact Us
Register
Log In

Modify the room name

Last Updated on : 2022-04-29 05:35:20download

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.