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

---

[API](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api.md) · [All operations](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uhh-lt/discourse-analysis-tool-suite-api/versions/6b22366ce2d1/schema)
