Optimize a plan (async)
Queues an optimization and responds immediately.
Queues an optimization and responds immediately. All routes are recomputed and stops may move between vehicles. Set a webhook to receive the result.
Authorization
api_key private_key<token>
Pass your API key as the private_key query string parameter. Generate and rotate keys in Developer Settings of your Routal workspace.
Keys stay server-side. Never ship them to a browser or mobile app.
In: query
Path Parameters
id*string
Plan ID
Match
^[0-9a-f]{24}Query Parameters
keep_current_assignment?boolean
If true, the current assignment will not be changed.
Default
falseResponse Body
application/json
application/json
curl -X POST "https://example.com/v2/plan/string/optimize/async""string"{
"message": "Domain not found",
"message_id": "highway.domain.error.not_found"
}Empty
