Memories
Change a fact
PATCH
header
AuthorizationBearer <token>Your space key (om_...). Create one with POST /v1/spaces.
id*stringLength
1 <= length <= 64application/json- body
subject?stringLength
length <= 200text?stringLength
1 <= length <= 4000tier?Tiercore = always in context; long = recalled on demand; scratch = short-lived.
Default
"long"Value in
"core""long""scratch"tags?array<>Items
items <= 20source_ref?stringLength
length <= 500pinned?booleanexpires_at?|Format
date-timeUpdated
application/json- response
id*stringsubject*stringtext*stringtier*Tiercore = always in context; long = recalled on demand; scratch = short-lived.
Default
"long"Value in
"core""long""scratch"tags*array<string>source_ref*stringpinned*booleanorigin*OriginValue in
"user""agent""dream"expires_at*string|nullrecall_count*integerlast_recalled_at*string|nullcreated_at*stringupdated_at*stringmatch?stringRecall only: whether this fact matched the words of q, its meaning, or both.
Value in
"keyword""meaning""both"curl -X PATCH 'https://api.openmemory.sh/v1/memories/string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "id": "string", "subject": "string", "text": "string", "tier": "core", "tags": [ "string" ], "source_ref": "string", "pinned": true, "origin": "user", "expires_at": "string", "recall_count": 0, "last_recalled_at": "string", "created_at": "string", "updated_at": "string", "match": "keyword"}