---
title: "Create a new label"
method: POST
path: "/labels"
tags: ["labels"]
---

# Create a new label

`POST /labels`

Creates a new label with the provided attributes. Labels can be regular labels or groups (used for categorization). Admins only. For a label group, set is_group=true and do not set parent_uuid. To add a label to a group, create a new label with parent_uuid set to the group UUID.

## Request body

- object
  - `label` object, required
    - `name` string, required — Label name (unique within tenant)
    - `description` string — Label description
    - `parent_uuid` string — UUID of parent label (parent must be a group)
    - `is_group` boolean — Whether this label is a group (groups cannot have parents)
    - `color` string — Hex color code (e.g. #eb5757)

## Other responses

- `400` — Bad Request - Invalid parameters or malformed request
- `401` — Unauthorized - Invalid or missing authentication
- `403` — Forbidden - User lacks permission to access this resource
- `404` — Not Found - Resource does not exist
- `422` — Unprocessable Entity - Invalid request parameters or validation errors
- `429` — Too Many Requests - Rate limit exceeded
- `500` — Internal Server Error - Unexpected server error

---

[API](https://skmtc.net/rhythms/apis/rhythms-params-in-body.md) · [All operations](https://skmtc.net/rhythms/apis/rhythms-params-in-body/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rhythms/rhythms-params-in-body/revisions/a67e54becfe9/schema)
