Skip to main content
POST
Create routing configuration

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Body

application/json
name
string
required

Profile name, unique within the hub. Example: Default

hubId
string
required

Hub the profile belongs to. Example: 64d9932e2beb9037735ff022

useAllVehicle
boolean
required

Use every vehicle, even when fewer would do.

multitrip
boolean
required

Allow a vehicle to make more than one trip in its working time.

clustering
enum<string>
required

How visits are grouped per vehicle. Example: normal

Available options:
non-overlap,
balanced,
normal,
none
autoSpeed
boolean
required

Use road-network speeds. When false, defaultSpeed is required.

defaultVisitTime
integer
required

Minutes spent at a visit that has no visit time. Example: 10

returnToHub
boolean

Vehicles end their route back at the hub. Required unless returnToBase is sent.

returnToBase
boolean

Vehicles end their route back at their own start location.

defaultSpeed
integer

Average speed in km/h when autoSpeed is false. At least 5. Example: 30

autoSplit
enum<string>

Split a visit across vehicles when it is larger than one vehicle's capacity.

Available options:
none,
equal,
maximize
autoMerge
boolean

Merge visits at the same location.

avoidToll
boolean

Avoid toll roads.

returnAfterWorkingTime
boolean

Allow returning to the hub after the working time ends.

crossDockingType
enum<string>

Cross-docking through sub hubs. Default: none

Available options:
none,
all,
drop
subHubs
string[]

Sub hub ids for cross-docking. Must be in the same country as the main hub.

vehicleSubHubDistanceLimit
number

Maximum distance in meters between a vehicle and a sub hub. At least 1000.

dynamicVisitTime
object[]

Extra visit time per unit of a capacity type.

useOddEven
boolean

Respect odd-even plate restrictions.

oddEvenTime
object[]

Up to 2 restricted periods, HH:mm.

Response

Success

status
boolean

Status of response.

message
string

Message of API response.

data
object

Created configuration profile.