Create simulation
POST/api/v2/simulation
Simulations are normally created with simulation_template_instance and simulation_instanceA simulation should be created for each quantum of operations. For example, a simulation can be created for every day of service operations. The simulation contains settings for quality of service parameters. This endpoint can also be used to create simulation templates programmatically (bypassing the idempotent limitation of/api/v2/microservices/simulation_template). To achieve this, set simulation_mode: "template"and provide explicitly all the required configuration fields (e.g.,conversion_rate, vehicle_capacity, acceptable_waiting_time) to satisfy database constraints. When creating multiple templates that need to be sequentially selected by the cloning logic, you can automatically prioritize newly created templates over older ones by dynamically setting a time-based high priority value in recurrence_priority(e.g., current Unix timestamp). **WARNING:** Please ensure thatis_processor_basedis explicitly set totrue` unless it is needed to create on-demand real-time operations for ride-sharing optimizations.
Request
Responses
- 201
Created