---
title: "Suggest annotations"
method: POST
path: "/annoscaling/confirm_suggestions"
tags: ["annoscaling"]
---

# Suggest annotations

`POST /annoscaling/confirm_suggestions`

## Request

- The document declares no server URL.
- Auth: OAuth 2
  - Password
  - Token URL: `/authentication/login`

Suggest annotations

## Request body

- AnnoscalingConfirmSuggest
  - `project_id` integer, required: Project to apply suggestions
  - `code_id` integer, required: Code to apply on accepted spans
  - `reject_code_id` integer, required: Code to apply on rejected spans
  - `accept` SdocSentencePair[], required: Suggested annotations to accept
    - `sdoc_id` integer, required: ID of the source document
    - `sentence` integer, required: ID of the sentence within the document
  - `reject` SdocSentencePair[], required: Suggested annotations to reject
    - `sdoc_id` integer, required: ID of the source document
    - `sentence` integer, required: ID of the sentence within the document

## Response `200`

Successful Response

- SpanAnnotationRead[]
  - `begin` integer, required: Begin of the SpanAnnotation in characters
  - `end` integer, required: End of the SpanAnnotation in characters
  - `begin_token` integer, required: Begin of the SpanAnnotation in tokens
  - `end_token` integer, required: End of the SpanAnnotation in tokens
  - `id` integer, required: ID of the SpanAnnotation
  - `text` string, required: The SpanText the SpanAnnotation spans.
  - `code_id` integer, required: Code the SpanAnnotation refers to
  - `user_id` integer, required: User the SpanAnnotation belongs to
  - `sdoc_id` integer, required: SourceDocument the SpanAnnotation refers to
  - `created` string, date-time, required: Created timestamp of the SpanAnnotation
  - `updated` string, date-time, required: Updated timestamp of the SpanAnnotation
  - `group_ids` integer[], required: The group ids this span annotations belongs to
  - `memo_ids` integer[], required: Memo IDs attached to the SpanAnnotation

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-19** `7d7f3979babb`: 1 breaking
  - the response's body type changed from no type to `array` for status `200`
- **2026-07-16** `bd1187f3520e`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2025-08-22** `53e769440a25`: 2 warning
  - removed the optional property `detail/items/ctx` from the response with the `422` status
  - removed the optional property `detail/items/input` from the response with the `422` status

[Operation history](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/changes/annoscaling/confirm_suggestions/post.md)

---

[API](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api.md) - [All operations](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) - [OpenAPI document](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/revisions/e498207e29f4?raw)
