Execute stateless route optimization
POST/api/v1/node_scheduler
Stateless API provides direct access to the optimization engine developed by SWAT. It has high complexity while offering flexibility in setting up business rules applicable to your use case. With the Stateless approach, the SWAT backend does not maintain the state of objects submitted by the consumer, which may address any concerns the consumer has about data sovereignty or data privacy. However, it creates an additional burden for the consumer to maintain the state of objects and master data in the consuming application. In addition, since no data is persisted in the SWAT backend, the Stateless API cannot be used for integration with SWAT applications such as the Driver or web applications. Every payload has to include all data required to execute optimization such as vehicle locations, drop-off and pickup points, optimization simulations, and bookings.
If calculation_mode has been set to async, then the request will return a different object with job_id in it, which can be used to check the state of calculation and retrieve results of the optimization.
If the optimization engine was not able to find feasible solutions within a given period of time or number of iterations, the engine may reject all requested bookings.
Request
Responses
- 200
OK