To create a new unit group, use the command core/create_unit_group:
svc=core/create_unit_group¶ms={"creatorId":<long>, "name":<text>, "dataFlags":<uint>}
Parameters
Name | Description |
---|---|
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) |
dataFlags | data flags for the response (see Data format: Unit group) |
Response
{ "item":{ /* unit group created */ ... }, "flags":<uint> /* applied data flags */ }
You can find the format of “item” in the chapter Data format: Unit group.