Update a memory (creates new version)
Update a memory by creating a new version. The original memory is preserved with isLatest=false.
Request body
Example request
{
"id": "mem_abc123",
"content": "John prefers dark mode",
"containerTag": "user_123",
"newContent": "John now prefers light mode",
"forgetAfter": "2026-06-01T00:00:00Z",
"forgetReason": "temporary project deadline"
}Response
Memory updated successfully
Example response
{
"id": "mem_xyz789",
"memory": "John now prefers light mode",
"version": 2,
"parentMemoryId": "mem_abc123",
"rootMemoryId": "mem_abc123"
}Changes
Changed in 5 of the 46 revisions of this API.227
- ○
api tag
Content Managementaddedapi-tag-added
- ○
api tag
Memoriesremovedapi-tag-removed
- ○
- ○
added the new optional request property
allOf[subschema #2]/forgetAfternew-optional-request-property
- ○
added the new optional request property
allOf[subschema #2]/forgetReasonnew-optional-request-property
- ○
added the new optional request property
allOf[subschema #2]/temporalContextnew-optional-request-property
- ○
added the required property
forgetAfterto the response with the200statusresponse-required-property-added
- ○
added the required property
forgetReasonto the response with the200statusresponse-required-property-added
- ○
- ▲
request body became required
request-body-became-required
- ▲
- ●
changed the pattern of the request property
allOf[subschema #1]/containerTagfrom^[a-zA-Z0-9_-]+$to^[a-zA-Z0-9_:-]+$request-property-pattern-changed
- ●
- ▲
added the pattern
^[a-zA-Z0-9_-]+$to the request propertyallOf[subschema #1]/containerTagrequest-property-pattern-added
- ●
the
allOf[subschema #1]/containerTagrequest property's maxLength was set to100request-property-max-length-set
- ▲