Create Workspace Member

Changed on
post/v1/organizations/workspaces/{workspace_id}/members

Request

  • Base URL
    https://api.anthropic.com
  • Auth
    none declared

Path parameters

workspace_idstring required

ID of the Workspace.

Headers

anthropic-versionstring

The version of the Claude API you want to use.

Read more about versioning and our version history here.

Request body

user_idstring required

ID of the User.

workspace_role'workspace_admin' | 'workspace_developer' | 'workspace_restricted_developer' | 'workspace_user' required

Example request

{
  "user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
}

Response

Successful Response

type'workspace_member' required

Object type.

For Workspace Members, this is always "workspace_member".

user_idstring required

ID of the User.

workspace_idstring required

ID of the Workspace.

workspace_role'workspace_admin' | 'workspace_billing' | 'workspace_developer' | 'workspace_restricted_developer' | 'workspace_user' required

Example response

{
  "user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu",
  "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
}

Changes

    • breaking

      the response's property type changed from no type to object for status

    • info

      added the optional property / to the response with the status

    • info

      removed discriminator from response property for the response status

    • info

      removed from the response property oneOf list for the response status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      endpoint added