Skip to main content
Update an existing memory. The update behavior depends on the merge strategy: you can fully replace, append to, or smart-merge the existing content.

Parameters

UUID
required
The memory ID to update.
string
required
Updated memory content. Behavior depends on merge_strategy.
string
How the update should be applied. Defaults to smart-merge.
string
Optional new document type to associate with the memory.
object
Optional updated metadata. Merged with existing metadata.

Returns

The updated Memory object, same shape as the response from memories.get.

Example

Raises

  • AuthenticationError: when the API key is missing or invalid.
  • ContextNotFoundError: when the memory_id does not exist or is outside the caller’s scope (HTTP 404).
  • ValueError (Python, before anything is sent): merge_strategy or document_type is not a recognized value. In JavaScript and TypeScript Synap checks them instead and rejects with InvalidInputError.

See also