Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
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] (current) |
====== Create unit group ====== | ====== Create unit group ====== |
| |
To create a new unit group use command **core/create_unit_group**: | To create a new unit group, use the command **core/create_unit_group**: |
<code javascript> | <code javascript> |
svc=core/create_unit_group¶ms={"creatorId":<long>, | svc=core/create_unit_group¶ms={"creatorId":<long>, |
===== Parameters ===== | ===== Parameters ===== |
^ Name ^ Description ^ | ^ Name ^ Description ^ |
| creatorId | ID of user, who will be assigned as creator for new user | | | creatorId | ID of a user who will be assigned a creator for a new unit group | |
| name | new unit group name (at least 4 characters) | | | name | new unit group name (at least 4 characters) | |
| dataFlags | data flags for response (see [[../format/group|Data format: Unit group]])| | | dataFlags | data flags for the response (see [[../format/group|Data format: Unit group]])| |
| |
===== Response ===== | ===== Response ===== |
... | ... |
}, | }, |
"flags":<unit> /* applied data flags */ | "flags":<uint> /* applied data flags */ |
} | } |
</code> | </code> |
Format of field "item" you can see in chapter [[../format/group|Data format: Unit group]]. | You can find the format of “item” in the chapter [[../format/group|Data format: Unit group]]. |