---
title: "Update Memory"
method: PUT
path: "/memories/{memory_id}"
---

# Update Memory

`PUT /memories/{memory_id}`

Update an existing memory.

Args:
    memory_id: ID of the memory to update.
    request: Request containing updated memory details.
    authorized_user: Authorized user with organization context.

Returns:
    Updated memory object.

Raises:
    HTTPException: If memory not found or not authorized.

## Path parameters

- `memory_id` string, required

## Request body

- UpdateMemoryRequest — Request payload for updating a memory.
  - `title` string, nullable — Updated title of the memory
  - `instructions` string, nullable — Updated instructions or content
  - `use_case` string, nullable — Updated use case
  - `type` 'manual' | 'wiki' | 'runbook' | 'postmortem' | 'faq' | 'code_summary' | 'dashboard_summary' | 'log_field_mapping' | 'elastic_index_mapping' | 'service_catalog' | 'metrics-paths' | 'unknown'
  - `is_enabled` boolean, nullable — Whether the memory is enabled

## Response `200`

Successful Response

- MemoryResponse — Response model for a single memory.
  - `id` string, nullable — UUID of the memory
  - `title` string, nullable, required — Title of the memory
  - `instructions` string, nullable, required — Instructions or content
  - `category` string, nullable — UUID of the category
  - `use_case` string, nullable — Use case for the memory
  - `type` string, nullable — Type of memory
  - `is_enabled` boolean, nullable — Whether the memory is enabled
  - `last_updated_user_id` string, nullable — User ID who last updated this memory
  - `attachments` RequestFile[] — List of file attachments
    - `file_name` string, required
    - `base64_file` string
    - `mime_type` string, nullable
    - `url` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/traversal/apis/fastapi.md) · [All operations](https://skmtc.net/traversal/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/traversal/fastapi/revisions/2134ebffd1ef/schema)
