---
title: "Update a memory"
method: PATCH
path: "/memories/{memory_id}"
tags: ["memories"]
---

# Update a memory

`PATCH /memories/{memory_id}`

Update a memory with new data.

## Path parameters

- `memory_id` string, required — The ID of the memory to update

## Query parameters

- `space_id` string, nullable — Space ID if memory is in a specific space

## Request body

- MemoryUpdate — Model for updating an existing memory.
  - `content` string, nullable
  - `tags` string[], nullable
  - `source` string, nullable
  - `importance` integer, nullable
  - `category` string, nullable
  - `metadata` object, nullable

## Response `200`

The updated memory

- Memory — Full memory model including system fields.
  - `content` string, required — Memory content text
  - `tags` string[], nullable — Tags for categorizing the memory
  - `source` string, nullable — Source of the memory
  - `importance` integer, nullable — Importance score (1-10)
  - `category` string, nullable — Memory category within space
  - `metadata` object, nullable — Additional metadata
  - `id` string, required — Unique identifier
  - `created_at` string, date-time, required — Creation timestamp
  - `updated_at` string, date-time, nullable — Last update timestamp
  - `created_by_user` string, required — User who created this memory
  - `space_id` string, nullable — Space this memory belongs to
  - `space_name` string, nullable — Name of the space
  - `tenant_id` string, nullable — Legacy tenant identifier
  - `full_content` string, nullable — Complete original content (internal use)
  - `is_chunk` boolean — Whether this memory is a chunk of larger content
  - `parent_memory_id` string, nullable — ID of parent memory if this is a chunk
  - `chunk_index` integer, nullable — Index of this chunk within parent memory
  - `total_chunks` integer, nullable — Total number of chunks in parent memory
  - `chunk_metadata` object, nullable — Chunk-specific metadata

## Other responses

- `401` — Unauthorized
- `413` — Request Entity Too Large
- `422` — Validation Error

---

[API](https://skmtc.net/memara/apis/memara-api.md) · [All operations](https://skmtc.net/memara/apis/memara-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/memara/memara-api/versions/4dc7c4418845/schema)
