Skip to main content
When a fact about a user changes, you should update the existing memory rather than storing a new one alongside the old. Keeping a single authoritative record prevents your agent from encountering conflicting facts during retrieval. For example, if a user says “I moved from Lagos to Abuja,” find the location memory and patch it — the memory ID is preserved, but the content and its embedding are refreshed so every future search reflects the new truth.
Endpoint: PATCH https://api.remem.online/memories/{memory_id}

Request Headers

Path Parameters

string
required
UUID of the memory you want to update. Obtain this from a previous store, search, or list response.

Query Parameters

string
required
Must match the user_id that owns this memory.
string
required
Must match the agent_id that stored this memory.

Request Body

string
required
The replacement text for this memory. Remem re-embeds the new content automatically so future semantic searches return accurate results.

Examples

Response

200 — Success

Returns the full updated Memory object.

404 — Not Found

The memory_id doesn’t exist, or it belongs to a different user_id or agent_id.

Error Responses

Remem re-embeds the updated content immediately, so future semantic searches will reflect the change. The memory ID remains unchanged — any references you’ve stored to that ID continue to work.