Modify Room Devices

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

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.