---
title: "Update Memory"
method: PUT
path: "/api/user/memory"
---

# Update Memory

`PUT /api/user/memory`

Overwrite MEMORY.md with new content.

Returns ``413 Payload Too Large`` when *body.content* exceeds the
bounded-growth byte budget for ``MEMORY.md`` (see
:mod:`backend.app.agent.markdown_registry`). The original message
from the registry includes the actual size and the budget so a
user-side editor can show a useful error.

## Request body

- MemoryUpdate
  - `content` string, required

## Response `200`

Successful Response

- MemoryResponse
  - `content` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mozilla-ai/apis/clawbolt.md) · [All operations](https://skmtc.net/mozilla-ai/apis/clawbolt/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mozilla-ai/clawbolt/versions/327e305858ac/schema)
