---
title: "Edit a label"
method: PATCH
path: "/projects/{project}/labels/{label}"
tags: ["Planning"]
---

# Edit a label

`PATCH /projects/{project}/labels/{label}`

## Request

- Base URL: `https://api.yokka.ai/api/v1`
- URL: `https://api.yokka.ai/api/v1/projects/{project}/labels/{label}`
- Auth: HTTP bearer

Rename or recolor a label. A rename updates every card that has it; renaming onto another existing label merges the two.

Needs a read-and-write token. Same as the MCP tool `update_label`.

## Path parameters

- `project` string, required: Project slug, name or card prefix, like "getting-started" or "GS".
- `label` string, required: Label name, like "frontend".

## Headers

- `X-Client-Name` string

## Request body

- object
  - `name` string: New name.
  - `color` 'slate' | 'blue' | 'indigo' | 'violet' | 'fuchsia' | 'pink' | 'orange' | 'amber' | 'lime' | 'green' | 'teal' | 'sky': Optional color.

## Response `200`

The tool's result.

- object
  - `label` string, required
  - `color` string, required
  - `merged` boolean, required

## Other responses

- `400`: The arguments aren't valid, or the change isn't possible as asked.
- `401`: The token is missing, invalid, revoked or expired.
- `403`: The token can't do this, or a plan or board limit was reached.
- `404`: Something it names wasn't found, or isn't visible to this token.
- `413`: The request body is too large.
- `429`: Too many calls: retry after `Retry-After` seconds.

---

[API](https://skmtc.dev/yokka/apis/yokka-rest-api.md) · [All operations](https://skmtc.dev/yokka/apis/yokka-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yokka/apis/yokka-rest-api/revisions/19083353485e?raw)
