---
title: "Update labels"
method: PUT
path: "/v2/labels"
---

# Update labels

`PUT /v2/labels`

## Headers

- `Authorization` string
- `X-CAP-API-OAUTH-TOKEN` string

## Request body

- object
  - `labels` object[]
    - `labelId` integer, required
    - `name` string
    - `externalId` string
    - `description` string
    - `expiryConfig` object
      - `type` 'NONE' | 'FIXED_DATE' | 'RELATIVE'
      - `expiryDate` string
      - `unit` 'DAYS' | 'MONTHS' | 'YEARS'
      - `value` integer
      - `roundingUnit` string
    - `status` 'ACTIVE' | 'ARCHIVED'

## Response `200`

All labels updated.

## Other responses

- `207` — Partial success.
- `400` — All labels failed validation.

---

[API](https://skmtc.net/capillarytech/apis/sample-api.md) · [All operations](https://skmtc.net/capillarytech/apis/sample-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/capillarytech/sample-api/revisions/de241f2ed9b3/schema)
