Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.319 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Add Workspace To Service Account changedapi/admin/service_accounts/workspaces/create

Nearest release: v2.1.261, published 3 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+4added
Lines−3removed
From line 2 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits5to this page, all time

The whole hunk

from line 2, old and new numbered
/
lines
from line 2
22 
33**POST** `/v1/organizations/service_accounts/{service_account_id}/workspaces`
44 
5**Requires an OAuth access token with the `org:admin` scope**, from `ant auth login --scope org:admin` or a workload identity federation rule; Admin API keys are not accepted. See [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
6 
57Add a service account to a workspace with the given `workspace_role`.
68 
79Mirror of `POST /workspaces/{workspace_id}/service_accounts`, addressed
from line 11
911service account is already an explicit member of the workspace, its
1012`workspace_role` is replaced with the value supplied here. Archived
1113workspaces return 400. Archived service accounts cannot be added and are
12rejected. Requires an OAuth bearer or Console session; Admin API keys
13are not accepted.
14rejected.
1415 
1516## Path parameters
1617 
from line 87
8687curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/workspaces \
8788 -H 'Content-Type: application/json' \
8889 -H 'anthropic-version: 2023-06-01' \
89 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN" \
90 -H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
9091 -d '{
9192 "workspace_id": "workspace_id",
9293 "workspace_role": "workspace_admin"
Feedback