Workspaces changedapi/beta/organization/workspaces
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+156added
Lines−0removed
From line
523
where the diff opens
First seen
26 Aug 2026
this site's first read of the page
Recorded edits28to this page, all time
### Errors ### Errors ### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors #### Errors
The whole hunk
from line 523, old and new numbered
/
from line 523
523523
524524 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.
525525
526### Errors
527
528Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
529
530Each code below is the value of `error.details.error_code` in the response body.
531
532- `external_key_validation_failed` (HTTP status 400)
533
534 The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
535
536- `external_key_validation_timed_out` (HTTP status 400)
537
538 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.
539
540- `key_profile_mismatch` (HTTP status 400)
541
542 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.
543
544- `user_profile_not_found` (HTTP status 400)
545
546 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.
547
548- `workspace_policy_violation` (HTTP status 400)
549
550 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.
551
552- `sandbox_egress_restricted` (HTTP status 403)
553
554 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.
555
556- `external_key_changed` (HTTP status 409)
557
558 The external key changed while the request was validating it. Send the request again.
559
526560### Example
527561
528562```bash
from line 932
898932
899933 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.
900934
935### Errors
936
937Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
938
939Each code below is the value of `error.details.error_code` in the response body.
940
941- `external_key_validation_failed` (HTTP status 400)
942
943 The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
944
945- `external_key_validation_timed_out` (HTTP status 400)
946
947 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.
948
949- `key_profile_mismatch` (HTTP status 400)
950
951 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.
952
953- `user_profile_not_found` (HTTP status 400)
954
955 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.
956
957- `workspace_policy_violation` (HTTP status 400)
958
959 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.
960
961- `sandbox_egress_restricted` (HTTP status 403)
962
963 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.
964
965- `external_key_changed` (HTTP status 409)
966
967 The external key changed while the request was validating it. Send the request again.
968
901969### Example
902970
903971```bash
from line 1128
10601128
10611129 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.
10621130
1131### Errors
1132
1133Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
1134
1135Each code below is the value of `error.details.error_code` in the response body.
1136
1137- `sandbox_egress_restricted` (HTTP status 403)
1138
1139 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.
1140
10631141### Example
10641142
10651143```bash
from line 1883
18051883
18061884 ID of the Workspace this entry applies to.
18071885
1886#### Errors
1887
1888Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
1889
1890Each code below is the value of `error.details.error_code` in the response body.
1891
1892- `sandbox_egress_restricted` (HTTP status 403)
1893
1894 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.
1895
18081896#### Example
18091897
18101898```bash
from line 2122
20342122
20352123 - `"workspace_user"`
20362124
2125#### Errors
2126
2127Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
2128
2129Each code below is the value of `error.details.error_code` in the response body.
2130
2131- `workspace_member_limit_exceeded` (HTTP status 400)
2132
2133 The workspace has reached the member limit that Anthropic set for it.
2134
2135- `sandbox_egress_restricted` (HTTP status 403)
2136
2137 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.
2138
20372139#### Example
20382140
20392141```bash
from line 2311
22092311
22102312 - `"workspace_user"`
22112313
2314#### Errors
2315
2316Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
2317
2318Each code below is the value of `error.details.error_code` in the response body.
2319
2320- `workspace_member_limit_exceeded` (HTTP status 400)
2321
2322 The workspace has reached the member limit that Anthropic set for it.
2323
2324- `sandbox_egress_restricted` (HTTP status 403)
2325
2326 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.
2327
22122328#### Example
22132329
22142330```bash
from line 2390
22742390
22752391 ID of the Workspace.
22762392
2393#### Errors
2394
2395Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
2396
2397Each code below is the value of `error.details.error_code` in the response body.
2398
2399- `sandbox_egress_restricted` (HTTP status 403)
2400
2401 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.
2402
22772403#### Example
22782404
22792405```bash
from line 2897
27712897
27722898 - `"workspace_user"`
27732899
2900#### Errors
2901
2902Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
2903
2904Each code below is the value of `error.details.error_code` in the response body.
2905
2906- `sandbox_egress_restricted` (HTTP status 403)
2907
2908 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.
2909
27742910#### Example
27752911
27762912```bash
from line 3390
32543390
32553391 - `"workspace_user"`
32563392
3393#### Errors
3394
3395Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
3396
3397Each code below is the value of `error.details.error_code` in the response body.
3398
3399- `sandbox_egress_restricted` (HTTP status 403)
3400
3401 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.
3402
32573403#### Example
32583404
32593405```bash
from line 3610
34643610- `workspace_id: string`
34653611
34663612 Tagged workspace ID (`wrkspc_...`) named in the delete request.
3613
3614#### Errors
3615
3616Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
3617
3618Each code below is the value of `error.details.error_code` in the response body.
3619
3620- `sandbox_egress_restricted` (HTTP status 403)
3621
3622 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.
34673623
34683624#### Example
34693625
No line in this hunk matches that.