---
title: "Update a label"
method: PATCH
path: "/v1/workspaces/{workspace_id}/labels/{id}"
tags: ["Labels"]
---

# Update a label

`PATCH /v1/workspaces/{workspace_id}/labels/{id}`

## Request

- Base URL: `https://api.oxvo.com`
- URL: `https://api.oxvo.com/v1/workspaces/{workspace_id}/labels/{id}`
- Auth: API key in header `api_access_token`

Update a label's attributes

## Request body

- LabelCreateUpdatePayload
  - `title` string: The label title
  - `description` string: A short description for the label
  - `color` string: Hex color code for the label
  - `show_on_sidebar` boolean: Whether the label should appear in the sidebar

## Response `200`

Success

- Label
  - `id` number: The ID of the label
  - `title` string: The title of the label
  - `description` string: The description of the label
  - `color` string: Hex color code for the label
  - `show_on_sidebar` boolean: Whether the label should appear in the sidebar

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/oxvo/apis/oxvo-apis.md) · [All operations](https://skmtc.dev/oxvo/apis/oxvo-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/oxvo/apis/oxvo-apis/revisions/9a8448cbd1fe?raw)
