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
Updated memory content. Behavior depends on merge_strategy.
How the update should be applied. Defaults to smart-merge.
Optional new document type to associate with the memory.
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