Repository Public
1---2title: Update Vault3url: https://platform.claude.com/docs/en/api/beta/vaults/update4---56# Update Vault78**POST** `/v1/vaults/{vault_id}`910Update Vault1112## Path parameters1314- `vault_id: string`1516## Headers1718- `"anthropic-beta": optional array of AnthropicBeta`1920 Optional header to specify the beta version(s) you want to use.2122 - `string`2324 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 43 more`2526 - `"message-batches-2024-09-24"`2728 - `"prompt-caching-2024-07-31"`2930 - `"computer-use-2024-10-22"`3132 - `"computer-use-2025-01-24"`3334 - `"pdfs-2024-09-25"`3536 - `"token-counting-2024-11-01"`3738 - `"token-efficient-tools-2025-02-19"`3940 - `"output-128k-2025-02-19"`4142 - `"files-api-2025-04-14"`4344 - `"mcp-client-2025-04-04"`4546 - `"mcp-client-2025-11-20"`4748 - `"dev-full-thinking-2025-05-14"`4950 - `"interleaved-thinking-2025-05-14"`5152 - `"code-execution-2025-05-22"`5354 - `"extended-cache-ttl-2025-04-11"`5556 - `"context-1m-2025-08-07"`5758 - `"context-management-2025-06-27"`5960 - `"model-context-window-exceeded-2025-08-26"`6162 - `"skills-2025-10-02"`6364 - `"fast-mode-2026-02-01"`6566 - `"output-300k-2026-03-24"`6768 - `"user-profiles-2026-03-24"`6970 - `"user-profiles-2026-08-18"`7172 - `"user-profiles-2026-09-04"`7374 - `"advisor-tool-2026-03-01"`7576 - `"managed-agents-2026-04-01"`7778 - `"cache-diagnosis-2026-04-07"`7980 - `"dreaming-2026-04-21"`8182 - `"thinking-token-count-2026-05-13"`8384 - `"server-side-fallback-2026-06-01"`8586 - `"server-side-fallback-2026-07-01"`8788 - `"fallback-credit-2026-06-01"`8990 - `"fallback-credit-2026-07-01"`9192 - `"agent-memory-2026-07-22"`9394 - `"mid-conversation-tool-changes-2026-07-01"`9596 - `"compact-2026-01-12"`9798 - `"computer-use-2025-11-24"`99100 - `"mcp-tunnels-2026-06-22"`101102 - `"structured-outputs-2025-11-13"`103104 - `"task-budgets-2026-03-13"`105106 - `"thinking-display-updates-2026-08-18"`107108 - `"ce-user-management-2026-07-13"`109110 - `"mid-conversation-output-config-2026-07-01"`111112 - `"thinking-binding-controls-2026-08-01"`113114 - `"mid-conversation-system-clear-at-2026-08-21"`115116 - `"compact-2026-09-04"`117118- `"anthropic-workspace-id": optional string`119120## Body parameters121122- `display_name: optional string or null`123124 Updated human-readable name for the vault. 1-255 characters.125126 minLength: 1, maxLength: 255127128- `metadata: optional map[string] or null`129130 Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omitted keys are preserved.131132## Returns133134- `BetaManagedAgentsVault object`135136 A vault that stores credentials for use by agents during sessions.137138 - `type: "vault"`139140 - `id: string`141142 Unique identifier for the vault.143144 - `archived_at: string or null`145146 A timestamp in RFC 3339 format147148 format: date-time149150 - `created_at: string`151152 A timestamp in RFC 3339 format153154 format: date-time155156 - `display_name: string`157158 Human-readable name for the vault.159160 - `metadata: map[string]`161162 Arbitrary key-value metadata attached to the vault.163164 - `updated_at: string`165166 A timestamp in RFC 3339 format167168 format: date-time169170## Example171172```bash173curl https://api.anthropic.com/v1/vaults/$VAULT_ID \174 -H 'Content-Type: application/json' \175 -H 'anthropic-version: 2023-06-01' \176 -H 'anthropic-beta: managed-agents-2026-04-01' \177 -H "X-Api-Key: $ANTHROPIC_API_KEY" \178 -d '{179 "display_name": "Example vault",180 "metadata": {181 "environment": "production"182 }183 }'184```185186### Response (200)187188```json189{190 "id": "vlt_011CZkZDLs7fYzm1hXNPeRjv",191 "archived_at": null,192 "created_at": "2026-03-15T10:00:00Z",193 "display_name": "Example vault",194 "metadata": {195 "environment": "production"196 },197 "type": "vault",198 "updated_at": "2026-03-15T10:00:00Z"199}200```201