route_update

To create, edit or delete a route, use the order/route_update method.

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

Parameters

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

Parameter Description
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 code Description
7 Invalid resource ID.
4 Logic error. See the reason in the response.

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