Add devices or child collections

Use this API to add devices or child collections to already exiting collection.
A collection is a group of things. In smart home concept, a collection can represent a Household, Home, Room, or an Apartment.

Log in to see full request history
{ "devices": [ { "dsn": "TESTDSN_876581_000" }, { "dsn": "TESTDSN_292527_000" } ], "child_collections": [ { "collection_uuid": "3378223c-b1b8-4ce7-916a-158602901869" } ] }
{ "collection_uuid":"e12553f2-2280-4340-938f-fd813bd3d49d" "name":"Room102" "type":"GROUP" "devices":[ { "dsn":"TESTDSN_086402_001" "product_name":"TESTDEVICE_001" "oem_model":"ledevb" "lan_enabled":false "connected_at":"2020-07-06T09:32:44Z" "connection_status":"Offline" } { "dsn":"TESTDSN_255199_000" "product_name":"TESTDEVICE_000" "oem_model":"ledevb-test" "lan_enabled":false "connected_at":"2020-10-29T20:25:37Z" "connection_status":"Offline" } { "dsn":"TESTDSN_876581_000" "product_name":"TESTDEVICE_000" "oem_model":"ledevb-test" "lan_enabled":false "connected_at":"2020-03-10T03:32:54Z" "connection_status":"Offline" } { "dsn":"TESTDSN_292527_000" "product_name":"TESTDEVICE_000" "oem_model":"ledevb" "lan_enabled":false "connected_at":"2020-02-03T10:05:07Z" "connection_status":"Offline" } ] "child_collections":[ { "collection_uuid":"3378223c-b1b8-4ce7-916a-158602901869" "name":"Room103" } ] "custom_attributes":{ "color":"#F08080" "sort_order":"ascending" } }
{ "devices": [ { "dsn": "TESTDSN_763168_004", "states": [ { "property_name": "integer_output_tp1", "base_type": "integer", "property_value": 1008 }, { "property_name": "string_input_tp1", "base_type": "string", "property_value": "OK" } ] }, { "dsn": "TESTDSN_177487_002", "states": [ { "property_name": "integer_input_tp", "base_type": "integer", "property_value": 1008 }, { "property_name": "decimal_input_tp", "base_type": "decimal", "property_value": 1008.1008 } ] } ], "child_collections": [ { "collection_uuid": "e12553f2-2280-4340-938f-fd813bd3d49d", "states": [ { "property_name": "integer_output_tp1", "base_type": "integer", "property_value": 1008 }, { "property_name": "string_input_tp1", "base_type": "string", "property_value": "OK" } ] } ] }
{ "collection_uuid":"8ae79d4b-bc40-4bc3-889e-7cbddda0c0ad" "name":"Good Morning" "type":"SCENE" "is_active":true "devices":[ { "dsn":"TESTDSN_787294_001" "product_name":"TESTDEVICE_001" "oem_model":"ledevb" "lan_enabled":false "connected_at":"2020-07-06T11:08:03Z" "connection_status":"Offline" "states":[...] } { "dsn":"TESTDSN_763168_004" "product_name":"TESTDEVICE_004" "oem_model":"ledevb-test" "lan_enabled":false "connected_at":"2020-02-08T05:33:08Z" "connection_status":"Offline" "states":[...] } { "dsn":"TESTDSN_177487_002" "product_name":"TESTDEVICE_002" "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":[...] } { "collection_uuid":"e12553f2-2280-4340-938f-fd813bd3d49d" "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":{ "value":true } } }
Path Params
string
required

UUID of the group or scene to which you want to add devices or child collections.

Query Params
string
required

Type of the collection. It can be either "GROUP" or "SCENE".

Body Params
json
Responses

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json