delete https://gss-dev.aylanetworks.com/groupsceneservice/v1/collections//remove_devices_from_hierarchy.json
This API is used to remove device(s) from the specified collection and all its child collections (if present).
{
"devices": [
{
"dsn": "TESTDSN_086402_001"
},
{
"dsn": "TESTDSN_255199_000"
}
]
}
{
"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
}
}
}