Update Workspace changedapi/beta/organization/workspaces/update
Nearest release: v2.1.328, published under an hour before 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+34added
Lines−0removed
From line
181
where the diff opens
First seen
26 Aug 2026
this site's first read of the page
Recorded edits14to this page, all time
## Errors
The whole hunk
from line 181, old and new numbered
/
from line 181
181181
182182 ID of the user profile attached to the Workspace, or null if it has none. Every inference request through a Workspace that has a user profile must name that profile.
183183
184## Errors
185
186Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
187
188Each code below is the value of `error.details.error_code` in the response body.
189
190- `external_key_validation_failed` (HTTP status 400)
191
192 The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
193
194- `external_key_validation_timed_out` (HTTP status 400)
195
196 Anthropic's validation of the External Key did not finish in time, so the request was refused. Wait a moment, then send the request again.
197
198- `key_profile_mismatch` (HTTP status 400)
199
200 After this request, the External Key and the Workspace would not have the same user profile. A key and its Workspace must have the same user profile, or both have none.
201
202- `user_profile_not_found` (HTTP status 400)
203
204 The request depends on a user profile that does not exist in the organization or is no longer active. The request either names this user profile by ID, or names a resource, such as an External Key, that is bound to it.
205
206- `workspace_policy_violation` (HTTP status 400)
207
208 The request breaks the organization's Workspace Policy. The message says which rule it broke; an organization admin can see and change the policy in the Console.
209
210- `sandbox_egress_restricted` (HTTP status 403)
211
212 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
213
214- `external_key_changed` (HTTP status 409)
215
216 The external key changed while the request was validating it. Send the request again.
217
184218## Example
185219
186220```bash
No line in this hunk matches that.