---
title: "Updates the SentenceAnnotation with the given ID."
method: PATCH
path: "/sentence/{sentence_anno_id}"
tags: ["sentenceAnnotation"]
---

# Updates the SentenceAnnotation with the given ID.

`PATCH /sentence/{sentence_anno_id}`

## Path parameters

- `sentence_anno_id` integer, required

## Request body

- SentenceAnnotationUpdate
  - `code_id` integer, nullable — Code the SentenceAnnotation refers to
  - `sentence_id_start` integer, nullable — Start sentence ID of the SentenceAnnotation
  - `sentence_id_end` integer, nullable — End sentence ID of the SentenceAnnotation

## Response `200`

Successful Response

- SentenceAnnotationRead
  - `sentence_id_start` integer, required — Start sentence ID of the SentenceAnnotation
  - `sentence_id_end` integer, required — End sentence ID of the SentenceAnnotation
  - `id` integer, required — ID of the SentenceAnnotation
  - `code_id` integer, required — Code the SentenceAnnotation refers to
  - `user_id` integer, required — User that created the SentenceAnnotation
  - `sdoc_id` integer, required — SourceDocument the SentenceAnnotation refers to
  - `created` string, date-time, required — Created timestamp of the SentenceAnnotation
  - `updated` string, date-time, required — Updated timestamp of the SentenceAnnotation
  - `memo_ids` integer[], required — Memo IDs attached to the SentenceAnnotation

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-04** `2e39665c5bd3` — 4 info
  - added the new optional request property `sentence_id_end`
  - added the new optional request property `sentence_id_start`
  - the request property `code_id` became optional
  - request property `code_id` list-of-types was widened by adding types `null` to media type `application/json`
- **2026-08-03** `fab14ec2229b` — 2 breaking, 2 warning
  - the request property `code_id` became required
  - request property `code_id` list-of-types was narrowed by removing types `null` from media type `application/json`
  - removed the request property `sentence_id_end`
  - removed the request property `sentence_id_start`
- **2026-08-03** `99542cbdb5a9` — 4 info
  - added the new optional request property `sentence_id_end`
  - added the new optional request property `sentence_id_start`
  - the request property `code_id` became optional
  - request property `code_id` list-of-types was widened by adding types `null` to media type `application/json`
- **2026-07-15** `1af5a8046f20` — 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

[Change history](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/changes/sentence/:sentence_anno_id/patch.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-service-production.skmtc.workers.dev/v1/apis/uhh-lt/discourse-analysis-tool-suite-api/revisions/a84d27ef7a0d/schema)
