openmemory
Docs
Memories

Change a fact

PATCH
/v1/memories/{id}

Authorization

headerAuthorizationBearer <token>

Your space key (om_...). Create one with POST /v1/spaces.

Path Parameters

id*string
Length1 <= length <= 64

Request Body

application/json
  1. body
subject?string
Lengthlength <= 200
text?string
Length1 <= length <= 4000
tier?Tier

core = always in context; long = recalled on demand; scratch = short-lived.

Default"long"
Value in"core""long""scratch"
tags?array<>
Itemsitems <= 20
source_ref?string
Lengthlength <= 500
pinned?boolean
expires_at?|
Formatdate-time

Response Body

Updated

application/json
  1. response
id*string
subject*string
text*string
tier*Tier

core = always in context; long = recalled on demand; scratch = short-lived.

Default"long"
Value in"core""long""scratch"
tags*array<string>
source_ref*string
pinned*boolean
origin*Origin
Value in"user""agent""dream"
expires_at*string|null
recall_count*integer
last_recalled_at*string|null
created_at*string
updated_at*string
match?string

Recall only: whether this fact matched the words of q, its meaning, or both.

Value in"keyword""meaning""both"
Example Request
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"}