Organization
PATCH
/workspaces/{id}/members/{memberId}

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
AuthorizationBearer <token>

An API key created under Settings → API & Webhooks.

In: header

Path Parameters

id*string
memberId*string

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  }}