---
title: "Returns all SpanGroupWithAnnotations of the User in the sDoc"
method: GET
path: "/spangroup/sdoc/{sdoc}/user/{user_id}"
tags: ["spanGroup"]
---

# Returns all SpanGroupWithAnnotations of the User in the sDoc

`GET /spangroup/sdoc/{sdoc}/user/{user_id}`

## Path parameters

- `user_id` integer, required

## Query parameters

- `sdoc_id` integer, required

## Response `200`

Successful Response

- SpanGroupWithAnnotationsRead[]
  - `name` string, required — Name of the SpanGroup
  - `id` integer, required — ID of the SpanGroup
  - `user_id` integer, required — User that created the SpanGroup
  - `sdoc_id` integer, required — SourceDocument the SpanGroup refers to
  - `created` string, date-time, required — Created timestamp of the SpanGroup
  - `updated` string, date-time, required — Updated timestamp of the SpanGroup
  - `span_annotations` SpanAnnotationRead[], required — Annotations of the SpanGroup
    - `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)
