---
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}`

## Request

- Base URL: `` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/remove-refinement-suggestion/{note}`
- Auth: none declared

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

- RefinedContentResponseDTO
  - `content` string

## 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

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

---

[API](https://skmtc.dev/nerds-odd-e/apis/odd-e-open-api.md) - [All operations](https://skmtc.dev/nerds-odd-e/apis/odd-e-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nerds-odd-e/apis/odd-e-open-api/revisions/193c5e89085a?raw)
