English
English
简体中文
Contact Us
Register
Log In

Modify Room Devices

Last Updated on : 2022-04-29 05:36:06download

Modify the devices in a room under a specified home.

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
home_idLonguritrueThe ID of a home.
room_idLonguritrueThe ID of a room.

Description of body

Parameter nameTypeINRequiredDescription
device_idsListbodytrueThe last device ID saved for the room.

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result.

Request example

PUT: /v1.0/homes/312321/rooms/2341231/devices
{
  "device_ids": [
    "ve23u9****",
    "ve23u92****"
  ]
}

Return example

true

Error code

For more information, see error code.