---
title: "Update a label"
method: PATCH
path: "/repos/{owner}/{repo}/labels/{id}"
tags: ["issue"]
---

# Update a label

`PATCH /repos/{owner}/{repo}/labels/{id}`

## Path parameters

- `owner` string, required
- `repo` string, required
- `id` integer, required

## Request body

- EditLabelOption — EditLabelOption options for editing a label
  - `color` string
  - `description` string — Description provides additional context about the label's purpose
  - `exclusive` boolean
  - `is_archived` boolean
  - `name` string — Name is the new display name for the label

## Response `200`

Label

- Label — Label a label to an issue or a pr
  - `color` string
  - `description` string — Description provides additional context about the label's purpose
  - `exclusive` boolean
  - `id` integer — ID is the unique identifier for the label
  - `is_archived` boolean
  - `name` string — Name is the display name of the label
  - `url` string — URL is the API endpoint for accessing this label

## Other responses

- `404` — APINotFound is a not found empty response
- `422` — APIValidationError is error format response related to input validation

---

[API](https://skmtc.net/gitea/apis/gitea-api.md) · [All operations](https://skmtc.net/gitea/apis/gitea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitea/gitea-api/versions/350de506cefa/schema)
