Update a memory

Update the content or tags of an existing memory.

PUT/api/v1/memories/{memory_id}

API Key

Stored locally, never sent to servers

Update a memory
const options = {  method: 'PUT',  headers: {'X-API-Key': 'mb_live_xxx', 'Content-Type': 'application/json'},  body: JSON.stringify({"content": "User prefers dark mode and uses Neovim now"})};fetch('https://api.mem-brain.io/api/v1/memories/{memory_id}', options)  .then(res => res.json())  .then(res => console.log(res))  .catch(err => console.error(err));
{
"id": "mem_xyz789",
"content": "User prefers dark mode and uses Neovim now",
"category": "user-prefs",
"tags": [
"type.preference"
],
"updated_at": "2026-04-13T16:00:00Z"
}