---
title: "Sets SourceDocuments' tags to the provided tags"
method: PATCH
path: "/tag/bulk/set"
tags: ["tag"]
---

# Sets SourceDocuments' tags to the provided tags

`PATCH /tag/bulk/set`

## Request body

- SourceDocumentTagLinks[]
  - `source_document_id` integer, required — ID of SourceDocument
  - `tag_ids` integer[], required — List of IDs of Tags

## Response `200`

Successful Response

- integer

## Other responses

- `422` — Validation Error

## Changes

> 73 revisions in range; 14 could not be searched.

- **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/tag/bulk/set/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)
