update_zones_group

The update_zones_group function is used to create, edit, or delete geofence groups.

Copied!
svc=resource/update_zones_group&params={"itemId":<long>,
					  "id":<long>,
					  "callMode":"<text>",
					  "n":"<text>",
					  "d":"<text>",
					  "zns":[<uint>]}

Parameters

Name Description
itemId Resource ID.
id Geofence group ID.
callMode Action: create, update, delete.

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

Name Description
n Name.
d Description.
trs The array of geofence IDs.

Returned result

For creation and modification requests:

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

For deletion requests:

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

Possible error codes:

Code Description
7 Failed to fetch the resource with the desired ACL (ADF_ACL_AVL_RES_EDIT_ZONES).
6 Undefined error.
4 Wrong input parameters.

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