---
title: "Update a label"
method: PATCH
path: "/api/workspaces/{workspaceId}/labels/{labelId}"
tags: ["Labels"]
---

# Update a label

`PATCH /api/workspaces/{workspaceId}/labels/{labelId}`

## Request

- Base URL: `https://hiveship.app/api`
- URL: `https://hiveship.app/api/api/workspaces/{workspaceId}/labels/{labelId}`
- Auth: API key in cookie `hiveship_access`

## Path parameters

- `workspaceId` string, required
- `labelId` string, required

## Request body

- object
  - `name` string
  - `color` string
  - `description` string

## Response `200`

Label updated

- object
  - `success` boolean, required
  - `data` object, required
    - `id` string, cuid, required
    - `name` string, required
    - `color` string, required
    - `description` string, nullable, required
    - `issueCount` integer, required

## Other responses

- `403`: Insufficient permissions
- `404`: Label not found

---

[API](https://skmtc.dev/hiveship/apis/hiveship-api.md) · [All operations](https://skmtc.dev/hiveship/apis/hiveship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hiveship/apis/hiveship-api/revisions/73d3e26544e4?raw)
