create_unit_group
The create_unit_group function is used to create unit groups.
svc=core/create_unit_group¶ms={"creatorId":<long>,
"name":"<text>",
"dataFlags":<uint>}
Parameters
| Name | Description |
|---|---|
| creatorId | The ID of the user that should be the creator of the unit group. |
| name | The name of the unit group (4–50 characters). |
| dataFlags | Flags with the unit group properties for the returned result (see the group page). |
Returned result
{
"item":{ /* unit group created */
...
},
"flags":<uint> /* applied flags with properties */
}
The format of the item parameter is described on the group page.
Possible error codes:
| Code | Description |
|---|---|
7 | The creator is a top account user or failed to check the create_unit_groups billing transaction. |
6 | Failed to fetch the creator or failed to create unit group. |
4 | Wrong input parameters. |