POST
/
v1
/
organizations
/
users
/
{user_id}

Headers

x-api-key
string
required

Your unique Admin API key for authentication.

This key is required in the header of all Admin API requests, to authenticate your account and access Anthropic's services. Get your Admin API key through the Console.

anthropic-version
string
required

The version of the Anthropic API you want to use.

Read more about versioning and our version history here.

Path Parameters

user_id
string
required

ID of the User.

Body

application/json
role
enum<string>
required

New role for the User. Cannot be "admin".

Available options:
user,
developer,
billing

Response

200 - application/json
id
string
required

ID of the User.

type
enum<string>
default: userrequired

Object type.

For Users, this is always "user".

Available options:
user
email
string
required

Email of the User.

name
string
required

Name of the User.

role
enum<string>
required

Organization role of the User.

Available options:
user,
developer,
billing,
admin
added_at
string
required

RFC 3339 datetime string indicating when the User joined the Organization.