Update Route
Update the route metadata, or the route times.
scheduled_start_at can change only before the route starts tracking. auto_complete_at can change only on a shift route (one created with scheduled_start_at or tracking_window: shift), until the route completes; on another route it returns 400.
On a shift route the limits of POST /orders/track apply: scheduled_start_at is at most 24 hours in the past, auto_complete_at is in the future, after the start, and at most 24 hours after it. Another open shift route of the same worker at the new times returns 409 (shift_overlap). A route whose auto_complete_at has passed returns 409 (shift_ended). When a time changes, later edits of the worker or ops group schedule do not move the route. Times equal to the stored ones change nothing.
In: header
Path Parameters
Query Parameters
Route version
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/orders/routes/string" \ -H "Content-Type: application/json" \ -d '{ "metadata": { "customerId": "4255534", "zone": 4 } }'{ "created_at": "2023-03-14T23:00:00Z", "route_handle": "route-1", "ops_group_handle": "SAN_JOSE_WH", "plan_mode": "manual", "status": "tracking", "version": 1, "estimate": { "start_by": "2023-03-14T23:20:00Z", "distance": 1000, "duration": 600, "polyline": { "type": "LineString", "coordinates": [ [ 77.72123, 12.89617 ], [ 77.72169, 12.89595 ], [ 77.72214, 12.89572 ] ] }, "start_location": { "type": "Point", "coordinates": [ -121.8924515, 37.4124516 ] }, "end_location": { "type": "Point", "coordinates": [ -121.8984515, 37.5124516 ] } }, "orders": [ { "order_handle": "order-101", "fulfillment_attempt": 1, "status": "assigned", "ops_group_handle": "store-sjc", "worker_handle": "James", "device_id": "2F659D4D-B524-45F0-A6E2-093CF2BB5574", "created_at": "2023-03-14T23:00:00Z", "scheduled_at": "2023-03-14T23:50:00Z", "scheduled_after": "2023-03-14T23:20:00Z", "metadata": { "customerId": "1223344" }, "region": { "city": "Fremont", "state": "California", "country": "United States of America" }, "destination": { "geometry": { "type": "Point", "coordinates": [ -121.8984515, 37.5124516 ] }, "radius": 50, "address": "Mission Peak, Fremont CA 94539" }, "risk_status": false, "expected_service_time": 600, "product_type": [ "plumber" ], "type": "drop", "capacity_used": 5 } ], "device_id": "2F659D4D-B524-45F0-A6E2-093CF2BB5574", "metadata": { "customerId": "4255534", "zone": 4 }, "embed_url": "https://embed.hypertrack.com/dkdkddnd"}{ "title": "string", "detail": "string"}{ "code": "string", "title": "string", "detail": "string"}{ "code": "string", "title": "string", "detail": "string"}Get Order by Route Handle GET
Get the orders by the `route_handle` Unplanned orders may include planning_failure_reason, a customer-facing explanation of why automated planning could not assign the order.
Disable Order POST
Disable an order identified by the given order_handle. This will recompute the ETA by excluding this order in the route