Skip to content

update

Update an existing memory by ID or similarity match. Supports partial edits without rewriting the full content.

ParameterTypeRequiredDescription
idnumberNo*Memory ID to update
contentstringNo*Full replacement content
appendstringNoText to append to existing content
prependstringNoText to prepend to existing content
findstringNoText to find (used with replace)
replacestringNoReplacement text (used with find)
topicstringNoUpdate topic
sourcestringNoUpdate source
importancenumberNoUpdate importance (1-5)
expires_in_daysnumberNoUpdate expiration

* Either id or similarity-based targeting is required.

{
"id": 42,
"append": "\nUpdate: now using RS256 instead of HS256"
}
{
"id": 42,
"find": "HS256",
"replace": "RS256"
}
{
"id": 42,
"importance": 5,
"topic": "critical-architecture"
}
  • remember — Store new memories
  • forget — Delete memories
  • merge — Combine multiple memories