Update a depot
PATCH
The playground uses your live account
Requests are sent with your real API key, so creating, updating or deleting here changes your production data.
BasicAuthheader
AuthorizationBasic <token>Use the API key as the username and leave the password empty.
depotId*stringThe depot id
Match
^[a-zA-Z0-9---_]{1,50}$The request body for updating a depot. All the values present in the request will update the depot value; if you wish to update only certain fields, only set them and do not set the others. Any fields not set will not be updated.
application/json- body
The request body for updating a depot. All the values present in the request will update the depot value; if you wish to update only certain fields, only set them and do not set the others. Any fields not set will not be updated.
name?stringLength
1 <= length <= 2048routeOverrides?The updated depot
application/json- response
The updated depot
id*stringThe depot id, in the format depots/<id>
Match
^depots\/[a-zA-Z0-9---_]{1,50}$name*stringThe name of the depot.
routeOverrides*|nullcurl -X PATCH 'https://api.spoke.com/public/v1/depots/string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "id": "string", "name": "string", "routeOverrides": { "startTime": { "hour": 0, "minute": 0 }, "startAddress": { "address": "string", "addressLineOne": "string", "addressLineTwo": "string", "latitude": 0, "longitude": 0, "placeId": "string", "countryCode": "string" }, "defaultTimeAtStop": 0, "endAddress": { "address": "string", "addressLineOne": "string", "addressLineTwo": "string", "latitude": 0, "longitude": 0, "placeId": "string", "countryCode": "string" }, "endTime": { "hour": 0, "minute": 0 }, "maxStops": 0, "roadSide": "any", "vehicleType": "bike", "roundTrip": true }}