Skip to main content
POST
Assign or Reassign a Route by external id
Identical to Assign or Reassign a Route, except the route is identified by the external id you supplied when creating it rather than the Nash route id. See that page for the full assignment behavior (targets, and pre- vs. post-dispatch handling).

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

externalId
string
required

External identifier of the route

Example:

"rte_ext_123"

Body

application/json

Input for assigning or reassigning a route.

Provide a provider, a driver group (contract), a courier, and/or a vehicle; driver group / courier / vehicle ids may be internal or external. Pre-dispatch the assignment is updated in place; post-dispatch the route is reassigned (cancel live deliveries, recreate tasks, re-quote) and the new target applied.

providerId
string | null

Provider id to assign. Selects the route's successful quote for this provider.

Example:

"uber"

driverGroupId
string | null

Driver group/Contract id (internal or external) to assign. Selects the route's successful quote for this contract.

Example:

"cntr_7mP3xVt9Nk8sRfWzY2hLbQ"

courierId
string | null

Courier/Driver id (internal or external) to assign to the route. The courier must belong to the route's driver group.

Example:

"cor_9dK2mNp7xVt3RfWzY8sLbQ"

vehicleId
string | null

Vehicle id (internal or external) to assign to the route. The vehicle must be assigned to the route's driver group (contract).

Example:

"veh_4hL8pXq2sVn6RtY3wCbD9M"

Response

OK

Represents a planned sequence of stops for a delivery or batch.

id
string
required

Unique identifier for the route.

Example:

"rte_JphRWDiEosGpXuxwgaYfY3"

portalUrl
string
required

Portal URL of the route.

Example:

"https://portal.usenash.com/routes/rte_JphRWDiEosGpXuxwgaYfY3"

type
string
required

Type of the route, indicating the pickup/dropoff structure.

Example:

"SINGLE_PICKUP_MULTIPLE_DROPOFFS"

stops
RouteStopSerializer · object[]
required

Ordered list of stops included in the route.

externalId
string | null

External Route ID.

Example:

"rte_JphRWDiEosGpXuxwgaYfY3"

name
string | null

Name of the route.

Example:

"Route 1"

courierId
string | null

Courier ID of the driver assigned to the route.

Example:

"cor_9dK2mNp7xVt3RfWzY8sLbQ"

vehicleId
string | null

Vehicle ID of the vehicle assigned to the route.

Example:

"veh_4hL8pXq2sVn6RtY3wCbD9M"

courier
CourierSerializer · object | null

Courier/driver details for the route.

driverGroup
DriverGroupSerializer · object | null

Driver group assigned to the route.

courierPosition
CourierPositionSerializer · object | null

Current GPS position of the assigned courier.

vehicle
VehicleSerializer · object | null

Vehicle details for the route.

providerName
string | null

Name of the delivery provider assigned to this route.

shiftId
string | null

Shift ID of the shift assigned to the route.

Example:

"shf_1234567890abcdef12345678"

isDispatched
boolean
default:false

Whether the route is dispatched.

jobId
string | null

Dispatched Job ID of this route

Example:

"job_1234567890abcdef12345678"

routeMetadata
Routemetadata · object | null

Additional metadata for the route.

Example:
validationErrors
Validationerrors · object | null

Validation errors for the route.

Example:
encodedPolyline
string | null

Encoded polyline representing the route geometry.

status
string | null

Current status of the route.

Example:

"CREATED"

statusHistory
Statushistory · object[] | null

History of status changes for the route.

Example: