---
title: "POST /api/repos/{namespace}/{repository}/labels"
method: POST
path: "/api/repos/{namespace}/{repository}/labels"
tags: ["issues"]
---

# POST /api/repos/{namespace}/{repository}/labels

`POST /api/repos/{namespace}/{repository}/labels`

## Path parameters

- `namespace` string, required
- `repository` string, required

## Request body

- CreateLabelRequest
  - `color` string, required — Hex color (e.g. `#ff0000`)
  - `description` string, nullable — Optional description
  - `name` string, required — Label name (use `scope::value` for scoped labels)

## Response `200`

Label created

- LabelEntry
  - `color` string, required
  - `description` string, nullable
  - `id` string, uuid, required
  - `name` string, required

## Other responses

- `400` — Invalid request
- `401` — Authentication required
- `403` — Insufficient permissions
- `404` — Repository not found or access denied
- `409` — Label name already exists

---

[API](https://skmtc.dev/mari/apis/gitarena.md) · [All operations](https://skmtc.dev/mari/apis/gitarena/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mari/gitarena/revisions/b3640d5600df/schema)
