Reorder a route
PATCH /v1/routes/manipulate/{route_id}
Send the route's activities in their new order, with the current modified_at. Times, stats and
the map line are recalculated and saved.
Authentication
Send a token issued in the Zoopit dashboard as Authorization: Bearer <token>.
Path parameters
| Name | Type | Required |
|---|---|---|
route_id | string | yes |
Request body
| Field | Type | Required |
|---|---|---|
modified_at | null or string | yes |
steps | array of object | yes |
jobs | array of object | |
ignore_pickup_window | null or boolean | |
ignore_delivery_window | null or boolean |
Responses
200
resource: Route_2
| Field | Type | Required |
|---|---|---|
stats | object | yes |
service_actor_id | null or string | yes |
fleet_actor_id | string | yes |
steps | array of object | yes |
polyline | string | yes |
planner_request_id | null or string | yes |
scheduled_end_time | string | yes |
scheduled_start_time | string | yes |
status | "CANCELED" | "DONE" | "READY" | "STARTED" or null | yes |
parent_id | null or string | yes |
logs | array of string or null | |
id | string | yes |
created_at | string | yes |
modified_at | null or string | yes |
deleted_at | null or string | yes |
created_by | string | yes |
modified_by | null or string | yes |
deleted_by | null or string | yes |
owners | array of string | yes |
tags | array of string | yes |
attributes | object | yes |
Example
curl -X PATCH 'https://routes-api.cloud.zoopit.no/v1/routes/manipulate/{route_id}'
-H 'Authorization: Bearer <token>'
-H 'Content-Type: application/json'
-d '{ ... }'
Try it in the interactive Routes API reference.
Field descriptions, guides and worked examples are in the full reference, available to customers in the Zoopit dashboard under Accounts → Developer.