Skip to main content
Update a member role

Authorizations

Authorization
string
header
required

Personal API key sent as a bearer token, together with X-Organization-Id. The key must have at least the access level the endpoint requires (read, write or admin).

Headers

X-Organization-Id
string

The organization to act in. Required for personal API keys; list the organizations you can access with GET /v1/organizations.

Path Parameters

user_id
string
required
Required string length: 1 - 255

Body

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

Response

The updated member. The last admin cannot be demoted.

user_id
string
required
Required string length: 1 - 255
organization_id
string
required
Required string length: 1 - 255
first_name
string | null
required
last_name
string | null
required
email
string | null
required
role
enum<string>
required
Available options:
admin,
member,
unsupported
joined_at
string<date-time>
required