API referenceMembers

Change a member role

Account-level, hand-made API keys only: workspace-, project- and budget-scoped keys and connector tokens get 403.

A key is never a member; it acts as the account (owner authority). Only an owner may grant, change or remove an owner. The account's own user cannot be changed (400).

PATCH
/members/{user_id}

Authorization

bearerAuth
AuthorizationBearer <token>

Typecut API key. Generate one in app.typecut.ai → Settings → API keys. Send as Authorization: Bearer tc_live_….

In: header

Path Parameters

user_id*string
Formatuuid

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/members/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "role": "owner"  }'
{
  "data": {
    "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
    "role": "owner"
  }
}
{
  "error": {
    "type": "string",
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "type": "string",
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "type": "string",
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "type": "string",
    "code": "string",
    "message": "string"
  }
}