Create Workspace changedapi/beta/organization/workspaces/create
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
321
where the diff opens
First seen
26 Aug 2026
this site's first read of the page
Recorded edits24to this page, all time
## Errors
The whole hunk
from line 321, old and new numbered
/
from line 321
321321
322322 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.
323323
324## Errors
325
326Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
327
328Each code below is the value of `error.details.error_code` in the response body.
329
330- `external_key_validation_failed` (HTTP status 400)
331
332 The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
333
334- `external_key_validation_timed_out` (HTTP status 400)
335
336 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.
337
338- `key_profile_mismatch` (HTTP status 400)
339
340 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.
341
342- `user_profile_not_found` (HTTP status 400)
343
344 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.
345
346- `workspace_policy_violation` (HTTP status 400)
347
348 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.
349
350- `sandbox_egress_restricted` (HTTP status 403)
351
352 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.
353
354- `external_key_changed` (HTTP status 409)
355
356 The external key changed while the request was validating it. Send the request again.
357
324358## Example
325359
326360```bash
No line in this hunk matches that.