route_update

To create, edit or delete a route, use the order/route_update command. It used to check notification triggers.

Copied!
svc=order/route_update&params={ "itemId":<long>,
				"orders":\[\],
				"routeId":<long>,
				"callMode":"<text>"}

Parameters

The required parameters are marked with an asterisk (*).

ParameterDescription

itemId*

Resource ID.

orders*

Array of JSON orders and a "callmode" for each order.

routeId*

Route ID.

callMode*

Action: create, edit, delete.

Response

Copied!
{
	"orders":[{
		"id":<uint>,		/* order ID */ 
		"f":<uint>,		/* order flags */
		"u":<uint>,		/* unit ID */
		"uid":<uint>,		/* order UID */
		"callMode":"<text>"
    	},
    	...
	]
}

Error codes

Error codeDescription
7Invalid resource ID.
4Logic error. See the reason in the response.
Download PDF file
Download Word document

See also