Create unit group

To create a new unit group, use the command core/create_unit_group:

svc=core/create_unit_group&params={"creatorId":<long>,
				   "name":<text>}

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)

Response

You can find the format of response in the chapter Data format: Unit group.

Errors

Code Value
1 invalid session
2 invalid service name
3 invalid result
4 invalid format or value of parameters
6 - creator ID doesn't exist
- error creating unit group (could be forbidden to create elements or element already exists)
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam