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

# PUT /api/repos/{namespace}/{repository}/labels/{label_id}

`PUT /api/repos/{namespace}/{repository}/labels/{label_id}`

## Path parameters

- `namespace` string, required
- `repository` string, required
- `label_id` string, uuid, required

## Request body

- UpdateLabelRequest
  - `color` string, nullable — New hex color
  - `description` string, nullable — New description
  - `name` string, nullable — New label name

## Response `200`

Label updated

- 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 or label not found
- `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)
