The whole hunk
from line 13, old and new numbered
/
lines
from line 13
1313
1414- `user_profile_id: string`
1515
16 The ID of the user profile to update (`uprof_...`).
17
1618## Headers
1719
1820- `"anthropic-beta": optional array of AnthropicBeta`
from line 119
117119
118120- `"anthropic-workspace-id": optional string`
119121
122 Optional header to select the Workspace for this request. The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
123
124 Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
125
120126## Body parameters
121127
122128- `access_type: optional "application" or "passthrough" or null`
from line 131
125131
126132 - `"application"`
127133
134 The user profile represents an individual end-user of a product that the platform builds on the API. New profiles get this value by default.
135
128136 - `"passthrough"`
129137
138 The user profile represents a company that the platform resells Claude access to.
139
130140- `external_id: optional string or null`
131141
132142 If present, replaces the stored external_id. Omit to leave unchanged. Maximum 255 characters. Accepted under the `user-profiles-2026-03-24` and `user-profiles-2026-08-18` beta headers; under `user-profiles-2026-09-04` send `external_user_details.reference_id` instead.
from line 153
143153
144154 - `"active"`
145155
156 The platform has neither restricted nor barred the account of the entity that the user profile represents.
157
146158 - `"suspended"`
147159
160 The platform has restricted the account of the entity that the user profile represents and may restore it.
161
148162 - `"blocked"`
149163
164 The platform has barred the account of the entity that the user profile represents.
165
150166 - `country: optional string or null`
151167
152168 The country of the entity (not of the platform), as the platform determines it: an ISO 3166-1 alpha-2 code in upper case, for example `US`. Only the form, two uppercase ASCII letters, is checked.
from line 223
207223
208224- `BetaUserProfile object`
209225
226 A record of an entity that the platform serves through the API, such as an end-user of the platform's product or a company that the platform resells Claude access to.
227
228 A Messages, Message Batches or token counting request can send a profile's `id` in the `anthropic-user-profile-id` header to attribute the request to that entity.
229
210230 - `type: "user_profile"`
211231
212232 Object type. Always `user_profile`.
from line 271
251271
252272 - `"application"`
253273
274 The user profile represents an individual end-user of a product that the platform builds on the API. New profiles get this value by default.
275
254276 - `"passthrough"`
255277
278 The user profile represents a company that the platform resells Claude access to.
279
256280 - `external_id: optional string or null`
257281
258282 Platform's own identifier for this user. Not enforced unique. Present under the `user-profiles-2026-03-24` and `user-profiles-2026-08-18` beta headers; under `user-profiles-2026-09-04` the value is `external_user_details.reference_id`.
from line 291
267291
268292 - `"active"`
269293
294 The platform has neither restricted nor barred the account of the entity that the user profile represents.
295
270296 - `"suspended"`
271297
298 The platform has restricted the account of the entity that the user profile represents and may restore it.
299
272300 - `"blocked"`
301
302 The platform has barred the account of the entity that the user profile represents.
273303
274304 - `country: string or null`
275305