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

# Update Memory

`PUT /agents/{agent_id}/memories/{memory_id}`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/agents/{agent_id}/memories/{memory_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Update a memory entry.

## Path parameters

- `memory_id` string, uuid, required
- `agent_id` string, uuid, required

## Request body

- AgentMemoryUpdate: Update a memory entry.
  - `content` string, nullable
  - `category` string, nullable
  - `extra_data` object, nullable
  - `importance` number, nullable
  - `expires_at` string, date-time, nullable
  - `last_verified` string, date-time, nullable

## Response `200`

Successful Response

- AgentMemoryResponse: Memory response.
  - `memory_type` string, required
  - `category` string, nullable
  - `content` string, required
  - `extra_data` object, nullable
  - `importance` number
  - `id` string, uuid, required
  - `agent_id` string, uuid, required
  - `user_identifier` string, required
  - `user_identifier_type` string, required
  - `source` string, required
  - `confidence` number, required
  - `access_count` integer, required
  - `last_accessed_at` string, date-time, nullable
  - `last_verified` string, date-time, nullable
  - `is_archived` boolean
  - `expires_at` string, date-time, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/meganova/apis/meganova-api.md) - [All operations](https://skmtc.dev/meganova/apis/meganova-api/llms.txt) - [OpenAPI document](https://skmtc.dev/meganova/apis/meganova-api/revisions/c683584f6060?raw)
