The whole hunk
from line 2, old and new numbered
/
lines
from line 2
22
33**POST** `/v1/organizations/service_accounts/{service_account_id}/archive`
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
57Archive a service account.
68
79Idempotent; re-archiving returns the service account with its original
from line 11
911rule still targets this service account, same as issuer archival; archive
1012those rules first or change their target to another service account.
1113
12Requires an OAuth bearer or Console session; Admin API keys are not
13accepted.
14
1514## Path parameters
1615
1716- `service_account_id: string`
from line 94
9594curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/archive \
9695 -X POST \
9796 -H 'anthropic-version: 2023-06-01' \
98 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
97 -H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN"
9998```
10099
101100### Response (200)