Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

469 pages for replace.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Update Federation Issuer Claude Developer Platform · in the page api/organization/federation/issuers/update …nguages=http). Partially update a federation issuer. Setting `jwks` replaces the full JWKS shape at once. Archived issuers cannot be updated; this returns 400. Create a new issuer instead. Updating… Rules Claude Developer Platform · in the page api/organization/federation/rules …federation rule. `issuer_id` is immutable. `match` and `target` are replaced as whole objects when set. Referenced service accounts and workspaces must exist in your organization; invalid references… Update Federation Rule Claude Developer Platform · in the page api/organization/federation/rules/update …federation rule. `issuer_id` is immutable. `match` and `target` are replaced as whole objects when set. Referenced service accounts and workspaces must exist in your organization; invalid references… Service Accounts Claude Developer Platform · in the page api/organization/service_accounts …p). ### Body parameters - `description: optional string or null` Replaces the description. Omit to leave unchanged; send `null` to clear (the field is stored as an empty string). maxLength: 20… Update Service Account Claude Developer Platform · in the page api/organization/service_accounts/update …tp). ## Body parameters - `description: optional string or null` Replaces the description. Omit to leave unchanged; send `null` to clear (the field is stored as an empty string). maxLength: 20… Workspaces Claude Developer Platform · in the page api/organization/service_accounts/workspaces …already an explicit member of the workspace, its `workspace_role` is replaced with the value supplied here. Archived workspaces return 400. Archived service accounts cannot be added and are rejected.… Add Workspace To Service Account Claude Developer Platform · in the page api/organization/service_accounts/workspaces/add …already an explicit member of the workspace, its `workspace_role` is replaced with the value supplied here. Archived workspaces return 400. Archived service accounts cannot be added and are rejected.… Workspaces Claude Developer Platform · in the page api/organization/workspaces …e: once a key is attached to a Workspace it cannot be detached or replaced. To rotate key material, rotate the underlying key on your cloud KMS; the `external_key_id` stays the same. -… Archive Workspace Claude Developer Platform · in the page api/organization/workspaces/archive …e: once a key is attached to a Workspace it cannot be detached or replaced. To rotate key material, rotate the underlying key on your cloud KMS; the `external_key_id` stays the same. -… Create Workspace Claude Developer Platform · in the page api/organization/workspaces/create …nce: once a key is attached to a Workspace it cannot be detached or replaced. To rotate key material, rotate the underlying key on your cloud KMS; the `external_key_id` stays the same. - `tags:… List Workspaces Claude Developer Platform · in the page api/organization/workspaces/list …e: once a key is attached to a Workspace it cannot be detached or replaced. To rotate key material, rotate the underlying key on your cloud KMS; the `external_key_id` stays the same. -… Get Workspace Claude Developer Platform · in the page api/organization/workspaces/retrieve …e: once a key is attached to a Workspace it cannot be detached or replaced. To rotate key material, rotate the underlying key on your cloud KMS; the `external_key_id` stays the same. -… Service Accounts Claude Developer Platform · in the page api/organization/workspaces/service_accounts …already an explicit member of the workspace, its `workspace_role` is replaced with the value supplied here. Archived workspaces return 400. Archived service accounts cannot be added and are rejected.… Create Service Account Workspace Member Claude Developer Platform · in the page api/organization/workspaces/service_accounts/add …already an explicit member of the workspace, its `workspace_role` is replaced with the value supplied here. Archived workspaces return 400. Archived service accounts cannot be added and are rejected.… Update Service Account Workspace Member Claude Developer Platform · in the page api/organization/workspaces/service_accounts/update …ge a service account's role in a workspace. The new `workspace_role` replaces the current one. Only explicit memberships can be updated; to set a role on the implicit default-workspace membership, ad… Update Workspace Claude Developer Platform · in the page api/organization/workspaces/update …nce: once a key is attached to a Workspace it cannot be detached or replaced. To rotate key material, rotate the underlying key on your cloud KMS; the `external_key_id` stays the same. - `name:… User Profiles Claude Developer Platform · in the page api/user_profiles …`access_type: optional UserProfileAccessType or null` If present, replaces the stored access type. Omit to leave unchanged. - `"application"` The user profile represents an individual end-… Update User Profile Claude Developer Platform · in the page api/user_profiles/update …`access_type: optional UserProfileAccessType or null` If present, replaces the stored access type. Omit to leave unchanged. - `"application"` The user profile represents an individual end-… claude-in-microsoft-foundry Claude Developer Platform · in the page build-with-claude/claude-in-microsoft-foundry …p> ```bash cURL # Make a request with a Microsoft Entra ID token. Replace {resource} with your resource name curl https://{resource}.services.ai.azure.com/anthropic/v1/messages \ -H "content… anthropic-managed Claude Developer Platform · in the page build-with-claude/claude-models-on-google-cloud/anthropic-managed …loudpartnerservices.goog \ --project=my-project-id ``` Replace `my-project-id` with your project ID. You can also enable both from the Claude page or from **APIs & Services**. Enab… google-managed Claude Developer Platform · in the page build-with-claude/claude-models-on-google-cloud/google-managed …ed#install-an-sdk-for-accessing-vertex-ai). </Step> <Step title="Replace the import and the client"> Change the code that imports and creates your client. Use `AnthropicVertex` (csharp: `Anth… claude-on-amazon-bedrock-legacy Claude Developer Platform · in the page build-with-claude/claude-on-amazon-bedrock-legacy …bs> **Using regional endpoints (CRIS):** To use regional endpoints, replace the `global.` prefix with a regional prefix such as `us.`: <Tabs> <Tab title="cURL"> <Note> Calling the `Invo… claude-platform-on-aws Claude Developer Platform · in the page build-with-claude/claude-platform-on-aws …form-on-aws#before-making-api-calls). <CodeGroup> ```bash cURL # Replace us-west-2 with your AWS region in both the URL and --aws-sigv4 # Omit the x-amz-security-token header if you use long-te… sent_count = len(messages sent in the compaction request) Claude Developer Platform · in the page build-with-claude/compaction …ll: as a conversation grows, response quality degrades, so compaction replaces older content with a concise summary. <Tip> For a deeper look at why long contexts degrade and how compaction helps, s… compaction-background Claude Developer Platform · in the page build-with-claude/compaction-background …history while messages 1 to 5 are summarized; the arriving block then replaces messages 1 to 5](https://platform.claude.com/docs/images/compaction-background-timeline.svg) </Frame> If the response ha… compaction-keep-recent-turns Claude Developer Platform · in the page build-with-claude/compaction-keep-recent-turns …pReason == anthropic.BetaStopReasonCompaction { history = slices.Replace(history, 0, split, summary.ToParam()) fmt.Printf("Kept %d turns after the block\n", len(recent)/2) } } } `… compaction-on-demand Claude Developer Platform · in the page build-with-claude/compaction-on-demand …fore or between them. ## Continue from the summary In your history, replace the messages you sent with the returned assistant message. Keep the `compaction` block exactly as the API returned it, inc… compaction-thinking-blocks Claude Developer Platform · in the page build-with-claude/compaction-thinking-blocks …hinking blocks against the conversation that produced them. A summary replaces part of that conversation, but the check accepts the swap when the API wrote the summary, so the thinking in kept turns c… compaction-threshold Claude Developer Platform · in the page build-with-claude/compaction-threshold …ll: as a conversation grows, response quality degrades, so compaction replaces older content with a concise summary. <Tip> For a deeper look at why long contexts degrade and how compaction helps, s… context-editing Claude Developer Platform · in the page build-with-claude/context-editing …cs/en/agents-and-tools/tool-use/tool-runner). Generates a summary and replaces full conversation history. See [Client-side compaction](https://platform.claude.com/docs/en/build-with-claude/context-edi… This will automatically use the environment variable VOYAGE_API_KEY. Claude Developer Platform · in the page build-with-claude/embeddings …vious generation** For each model's lifecycle status and recommended replacement, see [Model deprecations, lifecycle states, and support](https://www.mongodb.com/docs/voyageai/models/lifecycle/) in t… files Claude Developer Platform · in the page build-with-claude/files …ody, Path.of("downloaded_file.txt"), StandardCopyOption.REPLACE_EXISTING); } } ``` ```php PHP $fileContent = $client->files->download($fileId); file_put_contents('downl… handling-stop-reasons Claude Developer Platform · in the page build-with-claude/handling-stop-reasons …final response return response # pause_turn: replace the full message list to maintain alternating roles messages = [ {"role": "user", "content": user_… mid-conversation-effort-example Claude Developer Platform · in the page build-with-claude/mid-conversation-effort-example …capture_output=True, text=True, errors="replace", timeout=BASH_TIMEOUT_SECONDS, ) except subprocess.TimeoutExpired: return f"comma… mid-conversation-system-messages Claude Developer Platform · in the page build-with-claude/mid-conversation-system-messages …, send a different definition under the same name. The new definition replaces the earlier one from that position onward. A definition that reuses the name of a different type of tool returns a 400 er… preserved-thinking Claude Developer Platform · in the page build-with-claude/preserved-thinking …formations` has a `prefix_binding_mismatch` entry, alert on them, and replace each edit with the matching pattern in [Make changes without editing the prefix](https://platform.claude.com/docs/en/build… claude-prompting-best-practices Claude Developer Platform · in the page build-with-claude/prompt-engineering/claude-prompting-best-practices …ock like this can suppress structure the content needs. Remove it, or replace it with the shorter rule in [Formatting in chat](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/… Delivering work Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-fable-5-1 …any trimming. If you compact on the client, the simplest shape is to replace the whole history with one summary message plus the new user turn and replay nothing else: no thinking blocks carry over,… prompting-claude-haiku-5-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-haiku-5-5 …/effort) is the main control for how much Claude Haiku 5.5 thinks. It replaces the thinking budget (`budget_tokens`) that Claude Haiku 4.5 used, so there's no old setting to carry over. Compare two or… prompting-claude-opus-5-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-opus-5-5 …eeps the cache. A change holds for every later turn until another one replaces it. ## Prompts written for thinking disabled Claude Opus 5 accepts `thinking: {"type": "disabled"}` at `high` effort or… prompting-claude-sonnet-5-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-sonnet-5-5 …eeps the cache. A change holds for every later turn until another one replaces it. For example, in an interactive session at `low`, add a change to `high` before the user's hard problem, and a change… skills-guide Claude Developer Platform · in the page build-with-claude/skills-guide …| Returns a 400 error; upload a replacement version first, or delete the Skill | | Upload lay… task-budgets Claude Developer Platform · in the page build-with-claude/task-budgets …e server counts those tokens itself. Update this figure only when you replace the history this way; don't decrement it on each request. Pass the resulting `remaining` on every request, not only the on… thinking Claude Developer Platform · in the page build-with-claude/thinking …, "tools": [ { "name": "edit_file", "description": "Replace the contents of a file in the repository.", "input_schema": { "type": "object", "properties": {… apply Claude Developer Platform · in the page cli-sdks-libraries/cli/apply …`refusing to apply`. Pass `--force` to overwrite the edit or create a replacement. Deleting a file leaves its resource in place with a warning, and `--prune` removes it (archiving it, or deleting it… openai-sdk Claude Developer Platform · in the page cli-sdks-libraries/libraries/openai-sdk …ollowing: * Update your base URL to point to the Claude API. * Replace your API key with a [Claude API key](https://platform.claude.com/settings/keys) from the Claude Console. * If your key… middleware Claude Developer Platform · in the page cli-sdks-libraries/middleware …response M1-->>App: response ``` Each middleware can inspect or replace the request before calling `next()`, and the response after `next()` returns. ## Registering middleware Each middleware… java Claude Developer Platform · in the page cli-sdks-libraries/sdks/java …on every supported JDK; to compile an example on an earlier version, replace `IO.println(...)` with `System.out.println(...)` and place the body inside `public static void main(String[] args)` within… get-started Claude Developer Platform · in the page get-started …``` </Step> <Step title="Create your code"> Replace the contents of `Program.cs`: ```csharp C# using Anthropic; using Anthropic.Models.Messages;… authentication Claude Developer Platform · in the page manage-claude/authentication …cing workspace API keys If you have a workspace key, you may want to replace it with [Workload Identity Federation](https://platform.claude.com/docs/en/manage-claude/wif-reference) or a personal or s…
Feedback