Change the role of a workspace member or a pending invite. Set type to
user (default; memberId is the user id) or invite (memberId is the
invite email). Organization members cannot be changed here.
Authorization
bearerAuth An API key created under Settings → API & Webhooks.
In: header
Path Parameters
The member's user id, or the invite email when type is invite.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/workspaces/string/members/string" \ -H "Content-Type: application/json" \ -d '{ "role": "admin" }'{ "data": { "ok": true }}Update a workspace PATCH
Updates any subset of a workspace's `name`, `avatar` (empty string clears it) and `seatAllocation`. Lowering the allocation below the workspace's connected senders, or over-allocating the organization pool, is rejected with `400`.
List countries GET
The ISO 3166-1 alpha-2 countries accepted as a sender-account `country`.