create_unit_group

The create_unit_group function is used to create unit groups.

Copied!
svc=core/create_unit_group&params={"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

Copied!
{
	"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:

CodeDescription

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.

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form

Download PDF file
Download Word document

See also