# Update label

```http
PUT https://api.axiom.co/v2/labels/{id}
```

## Authentication

Authenticate using an API token or personal access token (PAT). Include the token as a Bearer token: `Authorization: Bearer <token>`. For more information, see [Tokens](/reference/tokens).

## Parameters

- `id` (path; string; pattern `^lbl_`; required)

## Request body

Content type: `application/json` (required)

- `color` (`LabelColor`)
- `description` (string; length ≤ 512; nullable)
- `name` (string; length 1–128; required)

## Responses

### 200: Updated label

Content type: `application/json`

- `color` (`LabelColor`; required)
- `description` (string; nullable)
- `id` (string; required)
- `name` (string; required)
- `resources_count` (`LabelResourcesCount`; required)

### 400: Invalid label ID or payload

### 404: Label not found

### 409: A label with this name already exists

## Schemas

### LabelColor

Object.

- `name` (string; one of `"red"`, `"coral"`, `"orange"`, `"amber"`, `"yellow"`, `"lime"`, `"green"`, `"teal"`, `"blue"`, `"iris"`, `"purple"`, `"pink"`; required)
- `type` (string; one of `"palette"`; required)

### LabelResourcesCount

Object.

- `dashboards` (integer (int64); required)
- `datasets` (integer (int64); required)
- `monitors` (integer (int64); required)
- `notifiers` (integer (int64); required)
- `total` (integer (int64); required)