---
title: "Update a memory"
method: PATCH
path: "/api/memory/{agentId}/memories/{memoryId}"
tags: ["memory"]
---

# Update a memory

`PATCH /api/memory/{agentId}/memories/{memoryId}`

Update a specific memory for an agent

## Path parameters

- `agentId` string, uuid, required
- `memoryId` string, uuid, required

## Request body

- object — Memory update data

## Response `200`

Memory updated successfully

- object
  - `success` boolean
  - `data` object
    - `id` string, uuid
    - `message` string

## Other responses

- `400` — Invalid agent ID or memory ID
- `404` — Agent or memory not found
- `500` — Error updating memory

---

[API](https://skmtc.net/elizaos/apis/eliza-os-api.md) · [All operations](https://skmtc.net/elizaos/apis/eliza-os-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elizaos/eliza-os-api/versions/f43280bfdb0c/schema)
