Skip to main content
Skip to Content
Dispatch API

Set the main depot for the team

POST
/depots/{depotId}:setMain

The playground uses your live account

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

Authorization

BasicAuth
headerAuthorizationBasic <token>

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

Path Parameters

depotId*string

The depot id

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

Response Body

Depot set as main successfully

Example Request
curl -X POST 'https://api.spoke.com/public/v1/depots/string:setMain'
Example Response
Empty