Update an existing unassigned stop
The playground uses your live account
Does not support updating a unassigned stop's location, nor the circuitClientId. To do so, delete the unassignedStop and create a new one.
BasicAuthAuthorizationBasic <token>Use the API key as the username and leave the password empty.
unassignedStopId*stringThe unassigned stop id
^[a-zA-Z0-9---_]{1,50}$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- 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?|nullorderInfo?|nullpaymentOnDelivery?|nullproofOfAttemptRequirements?|nullallowedDrivers?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
"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
items <= 200customProperties?|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?|nulldepot?|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.
The updated unassigned stop
application/json- response
The updated unassigned stop
id*stringThe id of the unassigned stop, in the format unassignedStops/<id>.
^unassignedStops\/[a-zA-Z0-9---_]{1,50}$depot*stringThe depot that this unassigned stop belongs to.
^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*|nullorderInfo*The order information of the stop.
recipient*The recipient of the stop.
activity?string"delivery""delivery""pickup"trackingLink*|The recipient tracking link.
timing*The timing data of the stop.
optimizationOrder?string"default""first""last""default"paymentOnDelivery*|nullproofOfAttemptRequirements*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
curl -X PATCH 'https://api.spoke.com/public/v0.2b/unassignedStops/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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}