update_memory
Update an existing memory's text by specifying its UUID and replacement content. Returns a task ID for async processing, allowing you to poll for results and see change history.
Instructions
Update an existing memory's text.
ASYNCHRONOUS by default (when MEM0_ASYNC_INGEST != false): validates the
memory exists, then returns {"status": "queued", "task_id", ...} immediately
while the re-embed + metadata re-classification (a slow llama3.1:8b call) run in
the background worker — so the call never times out the client. Poll
memory_task_status(task_id) for the result (memory_id / UPDATE event);
memory_history(memory_id) shows the old-vs-new diff. An identical re-submit
while the job is still active returns the same task_id (no double-apply). Set
MEM0_ASYNC_INGEST=false for the synchronous path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Replacement text for the memory. | |
| memory_id | Yes | Exact memory UUID to update. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |