POST
/
v1
/
organizations
/
workspaces
/
{workspace_id}
/
members
/
{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.

workspace_id
string
required

ID of the Workspace.

Body

application/json
workspace_role
enum<string>
required

New workspace role for the User.

Available options:
workspace_user,
workspace_developer,
workspace_admin,
workspace_billing

Response

200 - application/json
type
enum<string>
default: workspace_memberrequired

Object type.

For Workspace Members, this is always "workspace_member".

Available options:
workspace_member
user_id
string
required

ID of the User.

workspace_id
string
required

ID of the Workspace.

workspace_role
enum<string>
required

Role of the Workspace Member.

Available options:
workspace_user,
workspace_developer,
workspace_admin,
workspace_billing