# PATCH /memory/:id

**Resource:** [Agent Memory](./memory.md)  
**Scopes:** `memory:write`  
**Write operation:** yes

Partial update on a memory. Can change content, metadata, tags, linked_entities, confidence, expires_at, or visibility. Re-embeds automatically if content changes.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `id` | path | uuid | yes | Memory UUID. |
| `content` | body | string | no | Updated content. Triggers re-embedding. |
| `metadata` | body | object | no | Replaces existing metadata in full. |
| `linked_entities` | body | array | no | Replaces existing linked_entities in full. |
| `tags` | body | string[] | no | Replaces existing tags array in full. |
| `confidence` | body | number | no | 0.0-1.0. |
| `expires_at` | body | string | no | ISO timestamp. |
| `visibility` | body | string | no | "private" or "shared". |

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`