---
title: "Remove selected refinement layout items from note content (response only)"
method: POST
path: "/api/ai/remove-refinement-suggestion/{note}"
tags: ["ai-controller"]
---

# Remove selected refinement layout items from note content (response only)

`POST /api/ai/remove-refinement-suggestion/{note}`

Returns AI-regenerated note content in the response. Does not persist the note; the client must save the returned text (for example via the note update API).

## Path parameters

- `note` integer, required

## Request body

- NoteRefinementLayoutSelectionRequestDTO
  - `refinementLayout` NoteRefinementLayout
    - `items` NoteRefinementLayoutItem[], required
      - `id` string, required
      - `text` string, required
      - `alreadyExtracted` boolean, required
      - `ledToQuestion` boolean, required
      - `children` NoteRefinementLayoutItem[], required
  - `selectedItemIds` string[]

## Response `200`

OK

## Changes

- **2026-08-17** `5bdb7bbe4fef` — 1 warning, 1 info
  - removed the request property `layout`
  - added the new optional request property `refinementLayout`
- **2026-08-06** `555f237630cc` — 1 breaking
  - added the new required request property `layout/items/items/ledToQuestion`
- **2026-06-20** `c41850c4a236` — 1 warning, 2 info
  - removed the request property `suggestions`
  - added the new optional request property `layout`
  - added the new optional request property `selectedItemIds`
- **2026-05-31** `436941a058f6` — 1 info
  - endpoint added
- **2026-05-11** `d7c2946139e9` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/nerds-odd-e/apis/openapi-definition/changes/api/ai/remove-refinement-suggestion/:note/post.md)

---

[API](https://skmtc.dev/nerds-odd-e/apis/openapi-definition.md) · [All operations](https://skmtc.dev/nerds-odd-e/apis/openapi-definition/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nerds-odd-e/openapi-definition/revisions/44ef688a3dcd/schema)
