MemoryKit

Update Memory

Update a memory's title, tags, metadata, or content.

PUT/v1/memories/{memory_id}

Path parameters

memory_idUUIDrequired

The memory ID.

Request body

All fields are optional. Only provided fields are updated.

contentstring

New content (triggers re-processing).

titlestring

New title.

typestring

New content type.

tagsstring[]

Replaces all existing tags.

metadataobject

Merged with existing metadata. Set a key to null to delete it.

Updating content triggers asynchronous re-processing — the memory status will change to "processing" and existing chunks will be replaced.

Response

Returns 200 OK with the updated memory object.

Example response
{
  "id": "mem_abc123",
  "status": "completed",
  "title": "Updated Title",
  "tags": ["new-tag"],
  "metadata": { "version": 2 },
  "updated_at": "2025-01-15T12:00:00Z"
}
const memory = await mk.memories.update("mem_abc123", {
  title: "Updated Title",
  tags: ["new-tag"],
  metadata: { version: 2 },
});
Edit on GitHub

On this page