Update a memory store
api/beta/memory_stores/update
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/beta/memory_stores/update Changed · +20 / -17 lines
# Update a memory store ## Path parameters ## Headers ## Body parameters ## Returns ## Example ### Response (200) ## Update a memory store ### Path Parameters ### Header Parameters ### Body Parameters ### Returns ### Example #### Response
---- -title: Update a memory store -url: https://platform.claude.com/docs/en/api/beta/memory_stores/update ---- +# Update a memory store -## Update a memory store +**POST** `/v1/memory_stores/{memory_store_id}` -**post** `/v1/memory_stores/{memory_store_id}` - Update a memory store -### Path Parameters +## Path parameters - `memory_store_id: string` -### Header Parameters +## Headers - `"anthropic-beta": optional array of AnthropicBeta`
- `"mid-conversation-tool-changes-2026-07-01"` -### Body Parameters +## Body parameters - `description: optional string or null` New description for the store, up to 1024 characters. Pass an empty string to clear it. + maxLength: 1024 + - `metadata: optional map[string] or null` Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omit the field to preserve. The stored bag is limited to 16 keys (up to 64 chars each) with values up to 512 chars.
New human-readable name for the store. 1โ255 characters; no control characters. Renaming changes the slug used for the store's `mount_path` in sessions created after the update. -### Returns + minLength: 1, maxLength: 255 -- `BetaManagedAgentsMemoryStore object { id, created_at, name, 5 more }` +## Returns +- `BetaManagedAgentsMemoryStore object` + A `memory_store`: a named container for agent memories, scoped to a workspace. Attach a store to a session via `resources[]` to mount it as a directory the agent can read and write. - `id: string`
A timestamp in RFC 3339 format + format: date-time + - `name: string` Human-readable name for the store. 1โ255 characters. The store's mount-path slug under `/mnt/memory/` is derived from this name.
- `type: "memory_store"` - - `"memory_store"` - - `updated_at: string` A timestamp in RFC 3339 format + format: date-time + - `archived_at: optional string or null` A timestamp in RFC 3339 format + format: date-time + - `description: optional string` Free-text description of what the store contains, up to 1024 characters. Included in the agent's system prompt when the store is attached, so word it to be useful to the agent. Empty string when unset.
Arbitrary key-value tags for your own bookkeeping (such as the end user a store belongs to). Up to 16 pairs; keys 1โ64 characters; values up to 512 characters. Returned on retrieve/list but not filterable. -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/memory_stores/$MEMORY_STORE_ID \ -H 'Content-Type: application/json' \ -H 'anthropic-version: 2023-06-01' \
-d '{}' ``` -#### Response +### Response (200) ```json {