Update API Key changedapi/beta/organization/api_keys/update
Nearest release: v2.1.268, published under 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+21added
Lines−16removed
From line
1
where the diff opens
First seen
26 Aug 2026
this site's first read of the page
Recorded edits7to this page, all time
The whole hunk
from line 1, old and new numbered
/
from line 1
1---
2title: Update API Key
3url: https://platform.claude.com/docs/en/api/beta/organization/api_keys/update
4---
5
16# Update API Key
27
38**POST** `/v1/organizations/api_keys/{api_key_id}`
from line 37
3237
3338- `BetaAPIKey object`
3439
40 - `type: "api_key"`
41
42 Object type.
43
44 For API Keys, this is always `"api_key"`.
45
46 default: api_key
47
3548 - `id: string`
3649
3750 ID of the API key.
from line 61
4861 creator is not recorded (legacy, workload-identity-federated, or
4962 system-created keys).
5063
51 - `id: string`
52
53 ID of the actor that created the object.
54
5564 - `type: "service_account" or "user"`
5665
5766 Type of the actor that created the object.
from line 69
6069
6170 - `"user"`
6271
72 - `id: string`
73
74 ID of the actor that created the object.
75
6376 - `expires_at: string or null`
6477
6578 RFC 3339 datetime string indicating when the API Key expires, or `null` if it never expires.
from line 105
92105
93106 - `BetaAPIKeyServiceAccountActor object`
94107
95 - `service_account_id: string`
96
97 ID of the Service Account the API key acts as.
98
99108 - `type: "service_account_actor"`
100109
101110 Principal type. Always `"service_account_actor"` for a Service Account.
from line 111
102111
103112 default: service_account_actor
104113
114 - `service_account_id: string`
115
116 ID of the Service Account the API key acts as.
117
105118 - `scope: BetaAPIKeyOrganizationScope or BetaAPIKeyWorkspaceScope`
106119
107120 Where the API key belongs: its Workspace (`{"type": "workspace", "workspace_id": "wrkspc_..."}`, with the Workspace's real ID even when it is the organization's default Workspace), or the organization (`{"type": "organization"}`) for a principal-bound API key that has no Workspace.
from line 150
137150 - `"expired"`
138151
139152 - `"inactive"`
140
141 - `type: "api_key"`
142
143 Object type.
144
145 For API Keys, this is always `"api_key"`.
146
147 default: api_key
148153
149154 - `workspace_id: string or null`
150155
No line in this hunk matches that.