Driver groups: create, edit, delete

To create, edit or delete driver group, use the command resource/update_drivers_group:

svc=resource/update_drivers_group&params={"itemId":<long>,
					  "id":<long>,
					  "callMode":<text>,
					  "n":<text>,
					  "d":<text>,
					  "drs":[<uint>],
					  "f":<uint>}

Parameters

Name Description
itemId resource ID
id driver group ID
callMode action: create, update, delete
Parameters required only for create and update:
n name
d description
drs array of drivers IDs
f flags: not used at the moment

Response

On create and edit:

[
	<long>,		/* group ID */
	{
		"id":<long>,	/* group ID */
		"n":<text>,	/* name */
		"d":<text>,	/* description */
		"drs":[<uint>]	/* array of drivers IDs */
	}
]

On delete:

[
	<long>,		/* group ID */
	null
]
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2019 Gurtam