Differences

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

Link to this comparison view

en:sidebar:remoteapi:apiref:core:create_unit_group [24/01/2013 14:16]
zuve
en:sidebar:remoteapi:apiref:core:create_unit_group [07/04/2014 08:27]
Line 1: Line 1:
-{{indexmenu_n>​8}} 
-====== Create unit group ====== 
  
-To create a new unit group use command **core/​create_unit_group**: ​ 
-<code javascript>​ 
-svc=core/​create_unit_group&​params={"​creatorId":<​long>,​ 
-    "​name":<​text>,​ 
-    "​dataFlags":<​uint>​} 
-</​code>​ 
- 
-===== Parameters ===== 
-^ Name ^ Description ^ 
-| creatorId | ID of user, who will be assigned as creator for new user | 
-| name | new unit group name (at least 4 characters) | 
-| dataFlags | data flags for response (see [[../​format/​group|Data format: Unit group]])| 
- 
-===== Response ===== 
-<code javascript>​ 
-{ 
- "​item":​{ /​* unit group created */ 
- ...  
- }, 
- "​flags":<​unit>​ /​* applied data flags */ 
-} 
-</​code>​ 
-Format of field "​item"​ you can see in chapter [[../​format/​group|Data format: Unit group]]. 
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam