Skip to main content
Skip to Content
Dispatch API

Import multiple members

POST
/members:import

The playground uses your live account

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

Import multiple members at once.

Authorization

BasicAuth
headerAuthorizationBasic <token>

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

Request Body

An array of member descriptions to be created in batch.

application/json
  1. body

An array of member descriptions to be created in batch.

Items1 <= items <= 50
[index: integer]?

The request body for creating a member.

Response Body

The imported members

application/json
  1. response

The imported members

success*array<>

The ids of the successfully imported members

failed*array<>

The failed members

Example Request
curl -X POST 'https://api.spoke.com/public/v1/members:import' \  -H 'Content-Type: application/json' \  -d '[  {    "role": "admin"  }]'
Example Response
{  "success": [    "string"  ],  "failed": [    {      "error": {        "message": "string"      },      "member": {        "name": "string",        "displayName": "string",        "email": "user@example.com",        "linkedDriverId": "string",        "role": "admin",        "depots": [          "string"        ]      }    }  ]}