---
title: "Update a label"
method: PUT
path: "/labels/{id}"
tags: ["labels"]
---

# Update a label

`PUT /labels/{id}`

## Request

- Base URL: `https://api.axiom.co/v2`
- URL: `https://api.axiom.co/v2/labels/{id}`
- Auth: OAuth 2
  - Authorization code: `https://accounts.google.com/o/oauth2/v2/auth`
  - Token URL: `https://www.googleapis.com/oauth2/v4/token` scopes: `labels|update`
- TypeScript: <https://skmtc.dev/axiom/apis/axiom-public-api/docs/labels/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Request body

- LabelUpdate
  - `color` LabelColor
    - `name` 'red' | 'coral' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'teal' | 'blue' | 'iris' | 'purple' | 'pink', required
    - `type` 'palette', required
  - `description` string, nullable
  - `name` string, required

## Response `200`

Updated label

- LabelSummary
  - `color` LabelColor, required
    - `name` 'red' | 'coral' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'teal' | 'blue' | 'iris' | 'purple' | 'pink', required
    - `type` 'palette', required
  - `description` string, nullable
  - `id` string, required
  - `name` string, required
  - `resources_count` LabelResourcesCount, required
    - `dashboards` integer, required
    - `datasets` integer, required
    - `monitors` integer, required
    - `notifiers` integer, required
    - `total` integer, required

## Other responses

- `400`: Invalid label ID or payload
- `404`: Label not found
- `409`: A label with this name already exists

## Changes

- **2026-11-02** (v2) `e3baf3b85e8d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/axiom/apis/axiom-public-api/changes/labels/:id/put.md)

---

[API](https://skmtc.dev/axiom/apis/axiom-public-api.md) - [All operations](https://skmtc.dev/axiom/apis/axiom-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/axiom/apis/axiom-public-api/revisions/7e39a295e3ba?raw)
