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
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.New memory text. Max 8,192 characters. Triggers re-embedding.
Replace metadata entirely. Max 4 KB, 20 keys, 3 levels deep.
Float between 0 and 1.
One of:
correction, preference, decision, project, observation, general.Move memory to a different namespace. Max 255 characters.
Pin or unpin a memory. Pinned memories are exempt from type-based decay.
ISO 8601 date string to set a TTL, or
null to clear expiration. Must be in the future.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.UUID of the memory.
Memory content.
Memory metadata.
Importance score.
Memory type.
Memory namespace.
Expiration date or
null.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
| Status | Description |
|---|---|
| 404 | Memory not found (or deleted, or belongs to another wallet). |
| 409 | Memory is immutable and cannot be modified. |
| 422 | Invalid UUID format, empty body, or field validation failed. |
Example
Response