update_tag_units

The update_tag_units method is used to update the list of units selected for the automatic assignment of tags in a resource. The tags are used when assigning or separating passengers.

Copied!
svc=resource/update_tag_units&params={"itemId":<long>,
				      				  "units":[<long>]}

Parameters

Name Description
itemId Resource ID.
units The array of unit IDs. Units to which the user doesn’t have the View object and its basic properties access right are skipped.

Returned result

Copied!
{
	"tagrun":[<long>]	/* array of units for automatic assignment */
}

Possible error codes:

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

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