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

# Update a memory

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

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/memory/{agentId}/memories/{memoryId}`
- Auth: none declared

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.dev/elizaos/apis/eliza-os-api.md) - [All operations](https://skmtc.dev/elizaos/apis/eliza-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/elizaos/apis/eliza-os-api/revisions/d606a12682bb?raw)
