Remove specific devices or child collections

This API is used to remove specific devices or child collections from the specified collection.

Note: PS: The response for the successful execution includes the rest of the collection object with status code 200.

{
    "devices": [
        {
            "dsn": "TESTDSN_086402_001"
        },
        {
            "dsn": "TESTDSN_255199_000"
        }
    ],
    "child_collections": [
        {
            "collection_uuid": "e12553f2-2280-4340-938f-fd813bd3d49d"
        }
    ]
}
{
"collection_uuid":"8ae79d4b-bc40-4bc3-889e-7cbddda0c0ad"
"name":"Good Morning"
"type":"SCENE"
"is_active":true
"devices":[
{
"dsn":"TESTDSN_927364_001"
"product_name":"TESTDEVICE_111"
"oem_model":"ledevb"
"lan_enabled":false
"connected_at":"2020-07-06T11:08:03Z"
"connection_status":"Offline"
"states":[...]
}
{
"dsn":"TESTDSN_925516_004"
"product_name":"TESTDEVICE_222"
"oem_model":"ledevb-test"
"lan_enabled":false
"connected_at":"2020-02-08T05:33:08Z"
"connection_status":"Offline"
"states":[...]
}
{
"dsn":"TESTDSN_986111_002"
"product_name":"TESTDEVICE_333"
"oem_model":"ledevb-test"
"lan_enabled":false
"connected_at":"2020-02-20T10:33:01Z"
"connection_status":"Online"
"states":[...]
}
]
"child_collections":[
{
"collection_uuid":"a8ae010c-2dde-4140-8e19-116363eaa475"
"name":"Room102"
"states":[...]
}
]
"custom_attributes":{
"color":"#F08080"
"sort_order":"ascending"
}
"schedule":{
"end_date":"2021-12-02"
"days_of_week":"[1, 2, 3, 4, 5, 6, 7]"
"months_of_year":"[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]"
"end_time_each_day":"00:00:00"
"start_time_each_day":"00:00:00"
"name":"sched-2021-09-15-21:40:08"
"days_of_month":"[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, ..."
"active":true
"start_date":"2021-10-02"
"metadata":{
"sunrise_sunset":true
}
}
}
Language
Credentials
Header
Click Try It! to start a request and see the response here!