---
title: "Creates a SpanAnnotation"
method: PUT
path: "/span"
tags: ["spanAnnotation"]
---

# Creates a SpanAnnotation

`PUT /span`

## Request body

- SpanAnnotationCreate
  - `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
  - `span_text` string, required — The SpanText the SpanAnnotation spans.
  - `code_id` integer, required — Code the SpanAnnotation refers to
  - `sdoc_id` integer, required — SourceDocument the SpanAnnotation refers to

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

---

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