Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:d-sdk:4_units:adding-objects-to-a-group [2020/07/08 17:34]
cappopt@gmail.com
en:d-sdk:4_units:adding-objects-to-a-group [2021/07/07 13:28]
Line 1: Line 1:
-====== Adding units to a group ====== 
-The request is intended for adding an object to a group. 
  
-=== Request example === 
-<code php>&​svc=add_units_to_group&​params={ 
-    "​group_id":​ integer, 
-    "​unit_ids":​ [integer,​integer,​...] 
-}</​code>​ 
- 
-=== Parameters === 
-^ Parameter ​  ^ Description ​  ^ 
-| group_id | Unique Id of unit group | 
-| unit_ids | The unique identifier of the object | 
- 
-=== Response === 
-== List of added and denied units ids == 
-<code php>{ 
-    "​added":​ [ 
-        ... //IDs of objects that were added to the group 
-    ], 
-    "​denied":​ [ 
-        ... //IDs of objects that were not added to the group 
-    ] 
-}</​code>​