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

# Update User Memory

`PATCH /user-memories/{memory_id}`

Change where one of the caller's memories applies, or switch it on or
off. Its text is not editable. Someone else's id answers 404, like an id
that does not exist.

## Path parameters

- `memory_id` string, required

## Request body

- UserMemoryUpdate — What the settings list can change: what an entry governs, the levels it applies to, and whether it is switched on. The text is never rewritten by hand (EXC-801); a request carrying it is ignored. An omitted field is left as is; an empty `grades` list means every level, and `categories` must name at least one.
  - `categories` string[], nullable
  - `grades` string[], nullable
  - `enabled` boolean, nullable

## Response `200`

Successful Response

- UserMemoryResponse — One line of the settings list: what is remembered, where it applies, whether it is switched on, when and by which writer it was stored, and the conversation it came from when there is one. Deliberately narrower than the domain model: `status` is always `active` here and the confirmation bookkeeping is not something the list shows. `categories` say what it governs (EXC-956); `is_grading_rule` is derived from them (`grading` among them) and kept for older clients. The title is left out: it repeats the statement, which the list shows in full (EXC-801).
  - `id` string, required
  - `statement` string, required
  - `categories` string[], required
  - `grades` string[], required
  - `enabled` boolean, required
  - `is_grading_rule` boolean, required
  - `origin` 'declared' | 'inferred' | 'authored' | 'backfilled' | 'manual', required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable, required
  - `source_chat_id` string, nullable, required

## Other responses

- `404` — Resource not found
- `422` — Validation Error

## Changes

> 29 revisions in range; 1 not diffed.

- **2026-09-30** `518c1e6178a3` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/user-memories/:memory_id/patch.md)

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc.dev/excellence-ai/apis/excellence-learning/revisions/63b3baf6487c?raw)
