Update Memory
API Reference
Update Memory
PATCH /v1/memories/:id — Update a memory in-place.
PATCH
Update Memory
Price: $0.005 USDC
Update one or more fields on an existing memory. If
content is changed, the embedding and full-text search vector are regenerated automatically. All other fields (metadata, importance, etc.) are updated without re-embedding.
Path Parameters
string
required
UUID of the memory to update.
Request Body
At least one field must be provided. Only provided fields are updated — omitted fields are left unchanged.string
New memory text. Max 8,192 characters. Triggers re-embedding.
object
Replace metadata entirely. Max 4 KB, 20 keys, 3 levels deep.
number
Float between 0 and 1.
string
One of:
correction, preference, decision, project, observation, general.string
Move memory to a different namespace. Max 255 characters.
boolean
Pin or unpin a memory. Pinned memories are exempt from type-based decay.
string | null
ISO 8601 date string to set a TTL, or
null to clear expiration. Must be in the future.boolean
Set to
true to lock the memory permanently. Once immutable, the memory cannot be updated or deleted. This is a one-way operation.Response (200)
Returns the full updated memory object.string
UUID of the memory.
string
Memory content.
object
Memory metadata.
number
Importance score.
string
Memory type.
string
Memory namespace.
string | null
Expiration date or
null.string
Timestamp of this update.
Update does not run deduplication — you explicitly chose this memory ID, so the content is stored as-is. Relations, access history, and decay state are preserved.
Errors
Example
Response