---
title: "Changes to Edit a single memory in place while preserving its ID and usefulness posterior. Modes: 'replace' overwrites entire content; 'exact' performs surgical find-and-replace of oldString→newString (fails if missing or ambiguous)"
method: POST
path: "/api/memory/edit"
---

# Changes to Edit a single memory in place while preserving its ID and usefulness posterior. Modes: 'replace' overwrites entire content; 'exact' performs surgical find-and-replace of oldString→newString (fails if missing or ambiguous)

`POST /api/memory/edit`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 1 of 105 revisions.

- **2026-08-07** `06cac6a7c5bc` — 4 info

## Changes

- **2026-08-07** `06cac6a7c5bc` — 4 info
  - added the media type `application/json` for the response with the status `200`
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `404`
  - added the media type `application/json` for the response with the status `409`

---

[Operation](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/docs/api/memory/edit/post.md) · [API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [Page](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/memory/edit/post)
