Skip to main content

system.kanoa.lot.addRouteEvent(routeInfo, userId)

Add a route event. A route event is the instance of a route created for a lot.


Parameters

routeInfo Dictionary: All keys are required unless otherwise stated.

- enabledBooleanNot Required
- lotIdInteger
- routeDescriptionStringNot required
- routeIdInteger

userId Integer


Returns

routeEventId Integer
message String None if success


Example

userId=123
# Add a new route linked to an item
routeEventInfo = {"routeId": 5, "lotId": 102}
routeEventId, msg = system.kanoa.lot.addRoute(routeEventInfo, userId)