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

  • SynapAuthError: when the API key is missing or invalid.
  • SynapNotFoundError: when the memory_id does not exist or is outside the caller’s scope.
  • SynapValidationError: when merge_strategy or document_type is not a recognized value.

See also