Skip to main content
Skip to Content
Dispatch API
This is the documentation for Dispatch API v0.2b, which is no longer actively maintained. For up-to-date documentation, see the latest version (v1.0).

Update an existing unassigned stop

PATCH
/unassignedStops/{unassignedStopId}

The playground uses your live account

Requests are sent with your real API key, so creating, updating or deleting here changes your production data.

Does not support updating a unassigned stop's location, nor the circuitClientId. To do so, delete the unassignedStop and create a new one.

Authorization

BasicAuth
headerAuthorizationBasic <token>

Use the API key as the username and leave the password empty.

Path Parameters

unassignedStopId*string

The unassigned stop id

Match^[a-zA-Z0-9---_]{1,50}$

Request Body

The request body for updating an unassigned stop. All the values present in the request will update the unassigned stop value. If you wish to update only certain fields, only set those and do not set the others. Any fields not set will not be updated.

application/json
  1. body

The request body for updating an unassigned stop. All the values present in the request will update the unassigned stop value. If you wish to update only certain fields, only set those and do not set the others. Any fields not set will not be updated.

recipient?|null
orderInfo?|null
paymentOnDelivery?|null
proofOfAttemptRequirements?|null
allowedDrivers?array<>|

Driver IDs that are allowed to be assigned to this stop. If not provided, the stop will be assigned to any available driver during optimization.

activity?|

Activity type

Default"delivery"
optimizationOrder?|

The preferred order of this stop in the optimized route. If not provided or "default", the stop will be placed in the optimal order, decided by the optimization algorithm. Otherwise it will be placed either "first" or "last".

packageCount?|

Number of packages in the stop

weight?|

Weight information for this stop.

notes?|

Notes for the stop

barcodes?array<>

List of barcode IDs associated with this stop

Itemsitems <= 200
customProperties?|

Key-value pairs of custom stop properties for this stop. The keys must be unique and match a custom stop property defined in your team.

timing?|null
depot?|

The Depot ID that this unassigned stop belongs to, in the format depot/<id>. If null, it will default to the team's main depot. If not provided, it will not be updated.

Response Body

The updated unassigned stop

application/json
  1. response

The updated unassigned stop

id*string

The id of the unassigned stop, in the format unassignedStops/<id>.

Match^unassignedStops\/[a-zA-Z0-9---_]{1,50}$
depot*string

The depot that this unassigned stop belongs to.

Match^depots\/[a-zA-Z0-9---_]{1,50}$
address*

The address of the stop.

barcodes*array<string>

List of Barcode IDs associated with the stop.

allowedDriversIdentifiers*array<string>

The allowed drivers that can be assigned to this stop.

notes*|

Notes for the stop.

packageCount*|

The number of packages.

weight*|null
orderInfo*

The order information of the stop.

recipient*

The recipient of the stop.

activity?string
Default"delivery"
Value in"delivery""pickup"
trackingLink*|

The recipient tracking link.

timing*

The timing data of the stop.

optimizationOrder?string
Default"default"
Value in"first""last""default"
paymentOnDelivery*|null
proofOfAttemptRequirements*

The proof of attempt requirements of the stop.

customProperties*|

Custom properties of the stop, can be used to store additional information.

circuitClientId*|

The associated Client ID of the Spoke Connect

Example Request
curl -X PATCH 'https://api.spoke.com/public/v0.2b/unassignedStops/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "depot": "string",  "address": {    "address": "string",    "addressLineOne": "string",    "addressLineTwo": "string",    "latitude": -90,    "longitude": -180,    "placeId": null,    "placeTypes": [      "string"    ]  },  "barcodes": [    "string"  ],  "allowedDriversIdentifiers": [    "string"  ],  "notes": null,  "packageCount": null,  "weight": {    "amount": 0,    "unit": "kilogram"  },  "orderInfo": {    "products": [      "string"    ],    "sellerName": null,    "sellerOrderId": null,    "sellerWebsite": null  },  "recipient": {    "name": null,    "email": null,    "phone": null,    "externalId": null  },  "activity": "delivery",  "trackingLink": null,  "timing": {    "estimatedAttemptDuration": null,    "earliestAttemptTime": {      "hour": 0,      "minute": 0    },    "latestAttemptTime": {      "hour": 0,      "minute": 0    }  },  "optimizationOrder": "first",  "paymentOnDelivery": {    "amount": 0,    "currency": "string"  },  "proofOfAttemptRequirements": {    "enabled": null  },  "customProperties": {    "property1": "string",    "property2": "string"  },  "circuitClientId": null}