Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Update API Key changedapi/admin/api_keys/update

Nearest release: v2.1.245, published an hour after 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+18added
Lines−17removed
From line 1 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits5to this page, all time

# Update API Key ## Path parameters ## Body parameters ## Returns ## Example ### Response (200) ## Update API Key ### Path Parameters ### Body Parameters ### Returns ### Example #### Response

The whole hunk

from line 1, old and new numbered
/
lines
from line 1
1---
2title: Update API Key
3url: https://platform.claude.com/docs/en/api/admin/api_keys/update
4---
1# Update API Key
52 
6## Update API Key
3**POST** `/v1/organizations/api_keys/{api_key_id}`
74 
8**post** `/v1/organizations/api_keys/{api_key_id}`
9 
105Update API Key
116 
12### Path Parameters
7## Path parameters
138 
149- `api_key_id: string`
1510 
1611 ID of the API key.
1712 
18### Body Parameters
13## Body parameters
1914 
2015- `name: optional string or null`
2116 
2217 Name of the API key.
2318 
19 maxLength: 500, minLength: 1
20 
2421- `status: optional "active" or "archived" or "inactive" or null`
2522 
2623 Status of the API key.
from line 28
3128 
3229 - `"inactive"`
3330 
34### Returns
31## Returns
3532 
36- `APIKey object { id, created_at, created_by, 7 more }`
33- `APIKey object`
3734 
3835 - `id: string`
3936 
from line 40
4340 
4441 RFC 3339 datetime string indicating when the API Key was created.
4542 
46 - `created_by: object { id, type } or null`
43 format: date-time
4744 
45 - `created_by: object or null`
46 
4847 The ID and type of the actor that created the API key, or `null` when the
4948 creator is not recorded (legacy, workload-identity-federated, or
5049 system-created keys).
from line 60
6160 
6261 RFC 3339 datetime string indicating when the API Key expires, or `null` if it never expires.
6362 
63 format: date-time
64 
6465 - `name: string`
6566 
6667 Name of the API key.
from line 70
6970 
7071 Partially redacted hint for the API key.
7172 
72 - `principal: object { id, type } or null`
73 - `principal: object or null`
7374 
7475 The ID and type of the principal the API key acts as, or `null` if the key is not bound to a principal.
7576 
from line 104
103104 
104105 For API Keys, this is always `"api_key"`.
105106 
106 - `"api_key"`
107 default: api_key
107108 
108109 - `workspace_id: string or null`
109110 
110111 ID of the Workspace associated with the API key, or `null` if the API key belongs to the default Workspace.
111112 
112### Example
113## Example
113114 
114```http
115```bash
115116curl https://api.anthropic.com/v1/organizations/api_keys/$API_KEY_ID \
116117 -H 'Content-Type: application/json' \
117118 -H 'anthropic-version: 2023-06-01' \
from line 120
119120 -d '{}'
120121```
121122 
122#### Response
123### Response (200)
123124 
124125```json
125126{
Feedback