Update a memory by creating a new version. The original memory is preserved with isLatest=false.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Container tag / space identifier. Required to scope the operation.
100^[a-zA-Z0-9_:-]+$"user_123"
The new content that will replace the existing memory
1"John now prefers light mode"
ID of the memory entry to operate on
"mem_abc123"
Exact content match of the memory entry to operate on. Use this when you don't have the ID.
"John prefers dark mode"
Optional metadata. If not provided, inherits from the previous version.
ISO 8601 datetime string. The memory will be auto-forgotten after this time. Pass null to clear an existing expiry. Omit to inherit from the previous version.
"2026-06-01T00:00:00Z"
Optional reason for the scheduled forgetting. Cleared automatically when forgetAfter is set to null.
"temporary project deadline"
Structured temporal metadata. Merged into the metadata JSON column. If omitted, existing temporalContext is preserved.
Memory updated successfully
Response after updating a memory
ID of the newly created memory version
"mem_xyz789"
The content of the new memory version
"John now prefers light mode"
Version number of this memory entry
2
ID of the memory this version updates
"mem_abc123"
ID of the first memory in this version chain
"mem_abc123"
When this memory version was created
When this memory will be auto-forgotten, or null if no expiry
Reason for the scheduled forgetting, or null