update_drivers_group

The update_drivers_group method is used to create, edit, or delete driver groups.

Copied!
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.

The following parameters are only required to create and delete driver groups:

Name Description
n Name.
d Description.
drs The array of driver IDs.
f Flags. Doesn’t affect the request result.

Returned result

For creation and modification requests:

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

For deletion requests:

Copied!
[
	<long>,		/* group ID */
	null
]

Possible error codes:

Code Description
7 The resource doesn’t exist, or the user doesn’t have the Create, edit, and delete drivers access right to it.
6 Undefined error.
4 Wrong input parameters.

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