POST
POST /v1/organizations/service_accounts/{service_account_id}?beta=true — Claude API
Beta
Anthropic API key (required); https://api.anthropic.com
Claude APIUpdate Service Account
- Base URL
- https://api.anthropic.com
- Auth
- x-api-key: <ANTHROPIC_API_KEY>
- Last verified
- 2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 236 tokens · Vary: Accept
→ 236 tokens · Vary: Accept
Critical gotchas
Authentication uses the x-api-key header and requests also require an anthropic-version header.
The official OpenAPI URL is discovered from the SDK repository manifest and must remain under Anthropic's trusted Stainless storage prefix.
cURL
curl -X POST 'https://api.anthropic.com/v1/organizations/service_accounts/service-account-id?beta=true' \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H 'anthropic-version: 2023-06-01' \ -H 'Content-Type: application/json' \ -d '{}'
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| service_account_id | path | string | Yes | ID of the service account to update. |
| description | body | string | No | Replaces the description. Omit to leave unchanged; send `null` to clear (the field is stored as an empty string). |
| organization_role | body | string | No | Replaces the org-level role. Omit or send `null` to leave unchanged. |
Response 200 OK
{
"archived_at": "2026-09-03T00:00:00Z",
"archived_by_actor_id": "string",
"created_at": "2026-09-03T00:00:00Z",
"created_by_actor_id": "string",
"description": "string",
"id": "string",
"name": "string",
"organization_role": "admin",
"type": "service_account",
"updated_at": "2026-09-03T00:00:00Z",
"updated_by_actor_id": "string"
} Get a free Claude API key → sponsored Affiliate link - we may earn a commission, at no extra cost to you.