Create Optimization Strategy
Create a new optimization strategy for the authenticated organization. A strategy configures how orders are grouped into routes (service times, pickup-time windows, contracts, store locations, zones, and optional cron schedules).
Request
- Base URLhttps://api.sandbox.usenash.com
- Authnone declared
Request body
Contracts considered during optimization.
Contract id of the provider supplying shifts for this strategy.
Deprecated. Use pickup_time_from_in_minutes / pickup_time_to_in_minutes.
Deprecated. Use pickup_time_from_in_minutes / pickup_time_to_in_minutes.
Lower bound (inclusive) of the pickup time window to optimize, in minutes from now.
Upper bound (exclusive) of the pickup time window to optimize, in minutes from now.
Route around water crossings. Ferries are usually unusable by truck fleets, and the solver otherwise prices a sailing as ordinary driving time.
Prefer fewer crossings of selected zone polygons in LogisticsOS. Null disables the preference.
Reusable zone references. Omit to preserve the selection; null or an empty list clears it.
Zone ids assigned to this strategy.
Store location ids assigned to this strategy.
Where a strategy's pickup-only orders go on a route (OPT-805).
interleave (also NULL): the solver places a pickup wherever capacity and windows allow. after_deliveries: every delivery is visited before any pickup-only stop on the same route.
Which solver engine runs the optimization.
Distinct from Nash's OptimizationProvider (nash_enums): that enum is the persisted provider on route.optimization_provider and includes non-solver values (MANUAL, NAIVE) alongside the vendors. OptimizationSolver is the narrower "which engine" selector for this module.
Adding a solver here needs no schema change — route.optimization_provider is a plain varchar column — but it does need a new OptimizationProvider member and an entry in _SOLVER_TO_PROVIDER below. The mapping lives next to the enum precisely so that can't be missed: the engine originally shipped without it, and every engine-built route was recorded as LOGISTICS_OS (OPT-531).
Human-readable name for the strategy.
Changes
No recorded changes to this operation across all 1 revision of this API.