API ReferenceChangelogDiscussions
Log In
API Reference

Creates a route

Creates a route as specified.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string

Identifier of the agency. Included missions must be in this agency, and assigned person must be attached to this agency.

boolean

If true, the missions will be automatically ordered to minimise the route duration. Otherwise, if missions have a provided position, this position will be used to order them.

string

Identifier of contractor. To be used for contractor dedicated routes.

boolean
Defaults to false

If true, route will be created even if conflicts are detected.

string

License plate of the vehicle used to perform this route.

missionIds
array of strings

List of missions ids to be included in the new route. All deliveries must have the same pickup address. All pickups must have the same consignee address (depot address in this case). All missions must be in the same agency, and the assigned person must be abilited on this agency.

missionIds
double

Odometer value before route start.

string

Identifier of the assigned person.

string

Identifier of the survey to fill at route end. Leave it null to let unchanged.

string

Name of the route. It will be displayed in UI and mobile app.

string
enum

Route start acceptance policy depending on planned missions. NOTBLOCKED: route start will not be blocked. BLOCKED: route start will be blocked until the dispatcher grants acceptance. GRANTED: route start has been granted grants acceptance.

Allowed:
string

Identifier of the survey to fill at route start. Leave it null to let unchanged.

boolean
Defaults to false

If true, route will start from agency. Otherwise, it will start from deliveries pickup address (and all deliveries must have the same pickup address). Used only if automaticOrdering=true

date-time

Route start date and time.

string

Identifier of sub-contractor. To be used to assign the route to a specific sub-contractor. If personId is specified, we will use the sub-contractor Id of this user instead.

Headers
boolean
Defaults to false
Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json