---
title: "Creates a new Tag and returns it with the generated ID."
method: PUT
path: "/tag"
tags: ["tag"]
---

# Creates a new Tag and returns it with the generated ID.

`PUT /tag`

## Request body

- TagCreate
  - `name` string, required — Title of the Tag
  - `color` string — Color of the Code
  - `description` string, nullable — Description of the Tag
  - `parent_id` integer, nullable — Parent of the Tag
  - `project_id` integer, required — Project the Tag belongs to

## Response `200`

Successful Response

- TagRead
  - `name` string, required — Title of the Tag
  - `color` string, required — Color of the Tag
  - `description` string, nullable — Description of the Tag
  - `parent_id` integer, nullable — Parent of the Tag
  - `id` integer, required — ID of the Tag
  - `project_id` integer, required — Project the Tag belongs to
  - `created` string, date-time, required — Created timestamp of the Tag
  - `updated` string, date-time, required — Updated timestamp of the Tag
  - `memo_ids` integer[], required — Memo IDs attached to the Tag

## 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/revisions/6fcf6b0bc28a/schema)
