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

NameDescription
itemIdResource ID.
idGeofence group ID.
callModeAction: create, update, delete.

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

NameDescription
nName.
dDescription.
trsThe 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:

CodeDescription
7Failed to fetch the resource with the desired ACL (ADF_ACL_AVL_RES_EDIT_ZONES).
6Undefined error.
4Wrong input parameters.
Download PDF file
Download Word document

See also