Geofences groups: create, edit, delete

To create, edit or delete geofences group, use the command resource/update_zones_group:

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

Parameters

Name Description
itemId resource ID
id geofences group ID
callMode action: create, update, delete
Parameters required only for create and update:
n name
d description
zns array of geofences 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 */
		"zns":[<uint>]	/* array of geofences IDs */
	}
]

On delete:

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