---
title: "Update Memory"
method: PATCH
path: "/admin/memories/{memory_id}"
tags: ["admin", "memories"]
---

# Update Memory

`PATCH /admin/memories/{memory_id}`

## Request

- Base URL: `https://api-docs.upsmith.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.upsmith.com/admin/memories/{memory_id}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Update a memory (supersession-based, works for any level).

Creates a new version of the memory with updated content/category,
marks the old version as superseded.

## Path parameters

- `memory_id` string, required

## Headers

- `organization-id` string, nullable
- `timezone` string
- `x-user-id` string, nullable
- `x-actor-email` string, nullable
- `x-request-source` string, nullable
- `x-operation-id` string, nullable
- `x-commit-message` string, nullable
- `x-confirmation-id` string, nullable
- `x-chat-id` string, nullable

## Request body

- UpdateMemoryRequest
  - `content` string, nullable: Updated memory content
  - `category` string, nullable: Updated category label

## Response `200`

Successful Response

- MemoryResponse
  - `id` string, required
  - `level` string, required
  - `scope_id` string, nullable, required
  - `organization_id` string, nullable, required
  - `content` string, required
  - `category` string, nullable, required
  - `valid_from` string, nullable, required
  - `valid_until` string, nullable, required
  - `created_by` string, required
  - `created_at` string, required
  - `updated_at` string, required
  - `source_engagement_id` string, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/upsmith/apis/upsmith-api.md) - [All operations](https://skmtc.dev/upsmith/apis/upsmith-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upsmith/apis/upsmith-api/revisions/86e2c2bd93af?raw)
