route_update
To create, edit or delete a route, use the order/route_update command. It used to check notification triggers.
svc=order/route_update¶ms={ "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. |
The result is similar to the batch of order/update.
Response
{
"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. |