Skip to main content

Create a plannable route

POST /v1/plannable_routes

A recurring route: the vehicle, schedule, service and planning config it runs with, and the bookings assigned to it.

Authentication​

Send a token issued in the Zoopit dashboard as Authorization: Bearer <token>.

Request body​

FieldTypeRequired
ownerstringyes
referencenull or stringyes
planning_config_idnull or string
fleet_actor_idnull or string
scheduleobject or null
service_idnull or string
bookingsarray of object
tagsarray of string
attributesobject

Responses​

201​

resource: PlannableRoute

FieldTypeRequired
planning_config_idnull or stringyes
fleet_actor_idnull or stringyes
schedule_idnull or stringyes
service_idnull or stringyes
bookingsarray of objectyes
referencenull or stringyes
idstringyes
created_atstringyes
modified_atnull or stringyes
deleted_atnull or stringyes
created_bystringyes
modified_bynull or stringyes
deleted_bynull or stringyes
ownersarray of stringyes
tagsarray of stringyes
attributesobjectyes

Example​

curl -X POST 'https://orders-api.cloud.zoopit.no/v1/plannable_routes'
-H 'Authorization: Bearer <token>'
-H 'Content-Type: application/json'
-d '{ ... }'

Try it in the interactive Orders API reference.

Field descriptions, guides and worked examples are in the full reference, available to customers in the Zoopit dashboard under Accounts → Developer.