Skip to main content
PATCH
Change a member's role
Admins can’t change an owner’s role or make anyone an owner, and the team always keeps at least one owner. A team whose identity provider manages it changes roles there.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

a team member ID: the user_id GET /v1/team/members gives: user_ and up to 100 letters or digits

Example:

"user_01K6QZ8V3N4M5P6R7S8T9W0XYZ"

Body

application/json
role
enum<string>
required
Available options:
owner,
admin,
member,
tool_user

Response

The member with their new role

user_id
string
required

The member's user ID

email
string
required
name
string | null
required

Null when they gave none

role
enum<string>
required
Available options:
owner,
admin,
member,
tool_user
joined_at
string
required

a string to be decoded into a Date