> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memanto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit Memory

> Update fields of one memory.

## Overview

Updates any of the memory's `title`, `content`, `type`, `confidence`, `tags`, `source` and `provenance`. Fields you leave out keep their value. An expired memory stays expired.

## Authentication

**x-api-key** `string` *required*

Your Memanto Cloud API key (`mk_...`). See [Authentication](https://docs.memanto.ai/cloud/api/introduction.md#authentication).

## Path Parameters

**agent\_id** `string` *required*

The agent's ID.

**memory\_id** `string` *required*

The memory's ID.

## Body

At least one of the fields of [Remember](https://docs.memanto.ai/cloud/api/memories/remember.md).

```bash cURL theme={null}
curl -X PATCH "https://api.memanto.ai/agents/my-agent/memories/3f2a9c1e-…" \
  -H "x-api-key: $MEMANTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "The user prefers light mode",
    "confidence": 0.95
  }'
```

```json 200 - OK theme={null}
{
  "agent_id": "my-agent",
  "memory_id": "3f2a9c1e-…",
  "status": "updated",
  "action": "updated",
  "updated_fields": [
    "content",
    "confidence"
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.