Claude Platform Docs

Update Workspace Member

$ ant beta:organization:workspaces:members update
POST/v1/organizations/workspaces/{workspace_id}/members/{user_id}

Update Workspace Member

Parameters
--workspace-id: string⁠Path parameter

ID of the Workspace.

--user-id: string⁠Path parameter

ID of the User.

--workspace-role: BetaWorkspaceRole

New workspace role for the User.

One of the following:
"workspace_admin"
"workspace_billing"
"workspace_developer"
"workspace_restricted_developer"
"workspace_user"
Returns
beta_workspace_member: object{ type: "workspace_member", user_id, workspace_id, workspace_role }
type: "workspace_member"

Object type.

For Workspace Members, this is always "workspace_member".

user_id: string

ID of the User.

workspace_id: string

ID of the Workspace.

workspace_role: "workspace_admin" or "workspace_billing" or "workspace_developer" or 2 more

Role of the Workspace Member.

One of the following:
"workspace_admin"
"workspace_billing"
"workspace_developer"
"workspace_restricted_developer"
"workspace_user"
Errors

Any method can also return the general HTTP errors.

Each code below is the value of error.details.error_code in the response body.

error code workspace_member_limit_exceededHTTP status 400

The workspace has reached the member limit that Anthropic set for it.

error code sandbox_egress_restrictedHTTP status 403

The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.

Update Workspace Member
ant beta:organization:workspaces:members update \
  --workspace-id workspace_id \
  --user-id user_id \
  --workspace-role workspace_admin
Returns Examples
Response 200
{
  "type": "workspace_member",
  "user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu",
  "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ",
  "workspace_role": "workspace_admin"
}