---
title: "Preview Definition Memory Impact"
method: POST
path: "/api/v1/tasks/{task_id}/definition/memory-preview"
tags: ["tasks"]
---

# Preview Definition Memory Impact

`POST /api/v1/tasks/{task_id}/definition/memory-preview`

## Request

- Base URL: `https://api.komos.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.komos.ai/api/v1/tasks/{task_id}/definition/memory-preview`
- Auth: none declared

Preview which node memories would be invalidated by a definition change.

Returns a list of affected nodes with their current learnings info,
allowing the user to decide whether to carry over or discard the memories.

## Path parameters

- `task_id` string, uuid, required

## Headers

- `Authorization` string, nullable
- `X-Org-Id` string, nullable

## Request body

- MemoryPreviewBody
  - `definition` object, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/komos/apis/komos-backend.md) · [All operations](https://skmtc.dev/komos/apis/komos-backend/llms.txt) · [OpenAPI document](https://skmtc.dev/komos/apis/komos-backend/revisions/f10e153fab38?raw)
