Import multiple members
POST
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.
BasicAuthheader
AuthorizationBasic <token>Use the API key as the username and leave the password empty.
An array of member descriptions to be created in batch.
application/json- body
An array of member descriptions to be created in batch.
Items
1 <= items <= 50[index: integer]?The request body for creating a member.
The imported members
application/json- response
The imported members
success*array<>The ids of the successfully imported members
failed*array<>The failed members
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" ] } } ]}