Skip to main content
Skip to Content
Dispatch API

Update a member

PATCH
/members/{memberId}

The playground uses your live account

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

Updates a member from your team.

Authorization

BasicAuth
headerAuthorizationBasic <token>

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

Path Parameters

memberId*string

The member id

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

Request Body

The request body for updating a member.

application/json
  1. body

The request body for updating a member.

name?|

The member's full name

displayName?|

The name displayed for the member in the UI

role?|

The operational role given to the member.

depots?array<>|

The depot IDs associated with the member in the format depots/<id>, duplicates will be ignored. If set to null or not provided, the team's Main depot will be set as member depot.

Response Body

The updated member

application/json
  1. response

The updated member

id*string

The member id, in the format members/<id>

Match^members\/[a-zA-Z0-9---_]{1,50}$
name*|

The name of the member.

email*|

The email of the member.

phone*|

The phone number of the member.

linkedDriverId*|

The driver linked to the member (where applicable).

displayName*|

The display name of the member.

active*boolean

Whether the member membership is active or paused.

depots*array<>

Depots associated with the member.

roles*array<>

The role(s) given to the member.

Example Request
curl -X PATCH 'https://api.spoke.com/public/v1/members/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "name": null,  "email": null,  "phone": null,  "linkedDriverId": "string",  "displayName": null,  "active": true,  "depots": [    "string"  ],  "roles": [    "owner"  ]}