---
title: "Update label metadata"
method: PATCH
path: "/v1/labels/{labelId}"
tags: ["Labels"]
---

# Update label metadata

`PATCH /v1/labels/{labelId}`

Updates human-facing label metadata only: `name`, `description`, and `disabled`. Unknown JSON fields such as rule text are ignored. This RPC cannot create, mutate, or delete versions. To change a rule, create a new version.

## Path parameters

- `labelId` string, required

## Request body

- LabelsServiceUpdateLabelBody
  - `name` string — Optional metadata updates. This request has no field for rule content; unknown JSON fields are ignored.
  - `disabled` boolean
  - `description` string — Optional human-facing description of the label. Does not change any version's rule content.

## Response `200`

A successful response.

- V1UpdateLabelResponse
  - `label` Sharedv1Label — Label is a first-class, referenceable label entity (V2). Labels can be policy-scoped (policy_id set) or independent (policy_id empty). Policy-scoped labels are uniquely identified by (customer_id, name, policy_id). Independent labels are uniquely identified by (customer_id, name).
    - `labelId` string
    - `name` string
    - `customerId` string
    - `policyId` string
    - `disabled` boolean
    - `created` string, date-time
    - `updated` string, date-time
    - `expunged` boolean
    - `description` string
    - `archivedAt` string, date-time
    - `tags` V1LabelTag[]
      - `labelTagId` string
      - `customerId` string
      - `name` string
      - `color` string
      - `created` string, date-time
      - `updated` string, date-time
      - `expunged` boolean
    - `importProvenance` V1LabelImportProvenance — LabelImportProvenance records where a label's library-derived lineage began. Set on labels created via LabelLibraryService.ImportLibraryLabel and preserved on clones derived from them.
      - `libraryLabelId` string — Opaque source library catalog id (library_labels.id).
      - `libraryVersionId` string — The library label version id that was imported (the pinned published version).
      - `libraryName` string — The library entry's display name at import time (denormalized for stable display).
      - `importedAt` string, date-time — When the original import happened.

## Other responses

- `default` — An unexpected error response.

## Changes

- **2026-09-03** `703019caec67` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/clavata/apis/clavata-public-api-v1/changes/v1/labels/:labelId/patch.md)

---

[API](https://skmtc.dev/clavata/apis/clavata-public-api-v1.md) · [All operations](https://skmtc.dev/clavata/apis/clavata-public-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/clavata/clavata-public-api-v1/revisions/703019caec67/schema)
