Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Environments changedapi/beta/environments

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+244added
Lines−12removed
From line 417 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits26to this page, all time

### Errors ### Errors ### Errors ### Errors ### Errors ### Errors ## Errors ### environment_archived ### invalid_config_type_change ### invalid_metadata ### environment_create_disabled ### environment_update_disabled ### environment_not_found #### Errors #### Errors #### Errors #### Errors #### Errors

The whole hunk

from line 417, old and new numbered
/
lines
from line 417
417417 
418418 - `"account"`
419419 
420### Errors
421 
422Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
423 
424Each code below is the value of `error.details.error_code` in the response body.
425 
426- `claude_code_key_creator_not_member` (HTTP status 400)
427 
428 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
429 
430- `organization_on_hold` (HTTP status 400)
431 
432 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
433 
434- `environment_create_disabled` (HTTP status 403)
435 
436 Anthropic has turned off creating environments for this organization. Existing environments still work.
437 
420438### Example
421439 
422440```bash
from line 820
802820 
803821 Token for fetching the next page of results. If `null`, there are no more results available. Pass this value to the `page` parameter in the next request.
804822 
823### Errors
824 
825Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
826 
827Each code below is the value of `error.details.error_code` in the response body.
828 
829- `claude_code_key_creator_not_member` (HTTP status 400)
830 
831 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
832 
833- `organization_on_hold` (HTTP status 400)
834 
835 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
836 
805837### Example
806838 
807839```bash
from line 1185
11531185 
11541186 - `"account"`
11551187 
1188### Errors
1189 
1190Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
1191 
1192Each code below is the value of `error.details.error_code` in the response body.
1193 
1194- `claude_code_key_creator_not_member` (HTTP status 400)
1195 
1196 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
1197 
1198- `organization_on_hold` (HTTP status 400)
1199 
1200 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
1201 
11561202### Example
11571203 
11581204```bash
from line 1663
16171663 
16181664 - `"account"`
16191665 
1666### Errors
1667 
1668Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
1669 
1670Each code below is the value of `error.details.error_code` in the response body.
1671 
1672- `claude_code_key_creator_not_member` (HTTP status 400)
1673 
1674 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
1675 
1676- `environment_archived` (HTTP status 400)
1677 
1678 The environment is archived, so it cannot be updated.
1679 
1680- `invalid_config_type_change` (HTTP status 400)
1681 
1682 `config.type` differs from the environment's stored type, which cannot change after creation.
1683 
1684- `organization_on_hold` (HTTP status 400)
1685 
1686 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
1687 
1688- `environment_update_disabled` (HTTP status 403)
1689 
1690 Anthropic has turned off updating environments for this organization. Existing environments still work as they are.
1691 
16201692### Example
16211693 
16221694```bash
from line 1921
18491921 
18501922 Environment identifier
18511923 
1924### Errors
1925 
1926Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
1927 
1928Each code below is the value of `error.details.error_code` in the response body.
1929 
1930- `claude_code_key_creator_not_member` (HTTP status 400)
1931 
1932 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
1933 
1934- `organization_on_hold` (HTTP status 400)
1935 
1936 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
1937 
18521938### Example
18531939 
18541940```bash
from line 2252
21662252 
21672253 - `"account"`
21682254 
2255### Errors
2256 
2257Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
2258 
2259Each code below is the value of `error.details.error_code` in the response body.
2260 
2261- `claude_code_key_creator_not_member` (HTTP status 400)
2262 
2263 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
2264 
2265- `organization_on_hold` (HTTP status 400)
2266 
2267 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
2268 
21692269### Example
21702270 
21712271```bash
from line 2613
25132613 
25142614- `BetaEnvironmentArchivedErrorDetails object`
25152615 
2516 The environment is archived, so it cannot be updated.
2517 
25182616 - `error_code: "environment_archived"`
25192617 
25202618### Beta Environment Create Disabled Error Details
from line 2619
25212619 
25222620- `BetaEnvironmentCreateDisabledErrorDetails object`
25232621 
2524 Anthropic has turned off creating environments for this organization. Existing environments still work.
2525 
25262622 - `error_code: "environment_create_disabled"`
25272623 
25282624### Beta Environment Delete Response
from line 2641
25452641 
25462642- `BetaEnvironmentNotFoundErrorDetails object`
25472643 
2548 `settings.environment_id` names no Environment within the organization's reach.
2549 
25502644 - `error_code: "environment_not_found"`
25512645 
25522646### Beta Environment Update Disabled Error Details
from line 2647
25532647 
25542648- `BetaEnvironmentUpdateDisabledErrorDetails object`
25552649 
2556 Anthropic has turned off updating environments for this organization. Existing environments still work as they are.
2557 
25582650 - `error_code: "environment_update_disabled"`
25592651 
25602652### Beta Invalid Config Type Change Error Details
from line 2653
25612653 
25622654- `BetaInvalidConfigTypeChangeErrorDetails object`
25632655 
2564 `config.type` differs from the environment's stored type, which cannot change after creation.
2565 
25662656 - `error_code: "invalid_config_type_change"`
25672657 
25682658### Beta Invalid Metadata Error Details
from line 2659
25692659 
25702660- `BetaInvalidMetadataErrorDetails object`
25712661 
2572 `metadata` has too many keys, a key or value that is too long, or a reserved key. The message names each problem.
2573 
25742662 - `error_code: "invalid_metadata"`
25752663 
25762664### Beta Limited Network
from line 2814
27262814 
27272815 Network policy type
27282816 
2817## Errors
2818 
2819### environment_archived
2820 
2821HTTP status 400
2822 
2823- `"environment_archived"`
2824 
2825 The environment is archived, so it cannot be updated.
2826 
2827 - `details: BetaEnvironmentArchivedErrorDetails`
2828 
2829 - `error_code: "environment_archived"`
2830 
2831### invalid_config_type_change
2832 
2833HTTP status 400
2834 
2835- `"invalid_config_type_change"`
2836 
2837 `config.type` differs from the environment's stored type, which cannot change after creation.
2838 
2839 - `details: BetaInvalidConfigTypeChangeErrorDetails`
2840 
2841 - `error_code: "invalid_config_type_change"`
2842 
2843### invalid_metadata
2844 
2845HTTP status 400
2846 
2847- `"invalid_metadata"`
2848 
2849 `metadata` has too many keys, a key or value that is too long, or a reserved key. The message names each problem.
2850 
2851 - `details: BetaInvalidMetadataErrorDetails`
2852 
2853 - `error_code: "invalid_metadata"`
2854 
2855### environment_create_disabled
2856 
2857HTTP status 403
2858 
2859- `"environment_create_disabled"`
2860 
2861 Anthropic has turned off creating environments for this organization. Existing environments still work.
2862 
2863 - `details: BetaEnvironmentCreateDisabledErrorDetails`
2864 
2865 - `error_code: "environment_create_disabled"`
2866 
2867### environment_update_disabled
2868 
2869HTTP status 403
2870 
2871- `"environment_update_disabled"`
2872 
2873 Anthropic has turned off updating environments for this organization. Existing environments still work as they are.
2874 
2875 - `details: BetaEnvironmentUpdateDisabledErrorDetails`
2876 
2877 - `error_code: "environment_update_disabled"`
2878 
2879### environment_not_found
2880 
2881HTTP status 404
2882 
2883- `"environment_not_found"`
2884 
2885 `settings.environment_id` names no Environment within the organization's reach.
2886 
2887 - `details: BetaEnvironmentNotFoundErrorDetails`
2888 
2889 - `error_code: "environment_not_found"`
2890 
27292891## Environments › Work
27302892 
27312893### Get Work Item
from line 3140
29783140 
29793141 RFC 3339 timestamp when work execution stopped
29803142 
3143#### Errors
3144 
3145Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
3146 
3147Each code below is the value of `error.details.error_code` in the response body.
3148 
3149- `claude_code_key_creator_not_member` (HTTP status 400)
3150 
3151 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
3152 
3153- `organization_on_hold` (HTTP status 400)
3154 
3155 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
3156 
29813157#### Example
29823158 
29833159```bash
from line 3971
37953971 
37963972 Effective TTL applied to the lease
37973973 
3974#### Errors
3975 
3976Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
3977 
3978Each code below is the value of `error.details.error_code` in the response body.
3979 
3980- `heartbeat_precondition_failed` (HTTP status 412)
3981 
3982 `expected_last_heartbeat` does not match the stored heartbeat, so another worker may hold the lease.
3983 
37983984#### Example
37993985 
38003986```bash
from line 4261
40754261 
40764262 RFC 3339 timestamp when work execution stopped
40774263 
4264#### Errors
4265 
4266Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
4267 
4268Each code below is the value of `error.details.error_code` in the response body.
4269 
4270- `claude_code_key_creator_not_member` (HTTP status 400)
4271 
4272 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
4273 
4274- `organization_on_hold` (HTTP status 400)
4275 
4276 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
4277 
40784278#### Example
40794279 
40804280```bash
from line 4864
46644864 
46654865 RFC 3339 timestamp when work execution stopped
46664866 
4867#### Errors
4868 
4869Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
4870 
4871Each code below is the value of `error.details.error_code` in the response body.
4872 
4873- `claude_code_key_creator_not_member` (HTTP status 400)
4874 
4875 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
4876 
4877- `invalid_metadata` (HTTP status 400)
4878 
4879 `metadata` has too many keys, a key or value that is too long, or a reserved key. The message names each problem.
4880 
4881- `organization_on_hold` (HTTP status 400)
4882 
4883 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
4884 
46674885#### Example
46684886 
46694887```bash
from line 5115
48975115 - `workers_polling: number or null`
48985116 
48995117 Number of workers that have polled for work in the last 30 seconds. Requires worker_id to be sent with poll requests.
5118 
5119#### Errors
5120 
5121Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
5122 
5123Each code below is the value of `error.details.error_code` in the response body.
5124 
5125- `claude_code_key_creator_not_member` (HTTP status 400)
5126 
5127 The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
5128 
5129- `organization_on_hold` (HTTP status 400)
5130 
5131 Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code. `appeal_url`, when present, is where the organization can appeal.
49005132 
49015133#### Example
49025134 
Feedback