---
title: "PUT /v1/memories/{memory_id}/"
method: PUT
path: "/v1/memories/{memory_id}/"
tags: ["memories"]
---

# PUT /v1/memories/{memory_id}/

`PUT /v1/memories/{memory_id}/`

Get or Update or delete a memory.

## Path parameters

- `memory_id` string, uuid, required

## Request body

- object
  - `text` string — The updated text content of the memory
  - `metadata` object — Additional metadata associated with the memory

## Response `200`

Successfully updated memory

- object
  - `id` string, uuid — The unique identifier of the updated memory
  - `text` string — The updated text content of the memory
  - `user_id` string, nullable — The user ID associated with the memory, if any
  - `agent_id` string, nullable — The agent ID associated with the memory, if any
  - `app_id` string, nullable — The app ID associated with the memory, if any
  - `run_id` string, nullable — The run ID associated with the memory, if any
  - `hash` string — Hash of the memory content
  - `metadata` object — Additional metadata associated with the memory
  - `created_at` string, date-time — Timestamp of when the memory was created
  - `updated_at` string, date-time — Timestamp of when the memory was last updated

---

[API](https://skmtc.dev/thuir/apis/mem0-api-docs.md) · [All operations](https://skmtc.dev/thuir/apis/mem0-api-docs/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/thuir/mem0-api-docs/revisions/f569857d13db/schema)
