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

# Update Memory

`PATCH /memories/{memory_id}`

Update an existing user memory's content and topics. Replaces the entire memory content and topic list with the provided values.

## Path parameters

- `memory_id` string, required — Memory ID to update

## Query parameters

- `db_id` string, nullable — Database ID to use for update
- `table` string, nullable — Table to use for update

## Request body

- UserMemoryCreateSchema — Define the payload expected for creating a new user memory
  - `memory` string, required — Memory content text
  - `user_id` string, nullable — User ID who owns this memory
  - `topics` string[], nullable — Topics or tags to categorize the memory

## Response `200`

Memory updated successfully

- UserMemorySchema
  - `memory_id` string, required — Unique identifier for the memory
  - `memory` string, required — Memory content text
  - `topics` string[], nullable — Topics or tags associated with the memory
  - `agent_id` string, nullable — Agent ID associated with this memory
  - `team_id` string, nullable — Team ID associated with this memory
  - `user_id` string, nullable — User ID who owns this memory
  - `updated_at` string, date-time, nullable — Timestamp when memory was last updated

## Other responses

- `400` — Invalid request data
- `401` — Unauthorized
- `404` — Memory not found
- `422` — Validation error in payload
- `500` — Failed to update memory

---

[API](https://skmtc.net/agno/apis/agno-api-reference.md) · [All operations](https://skmtc.net/agno/apis/agno-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agno/agno-api-reference/revisions/5f6149d395d0/schema)
