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

# Update a label

`PUT /labels/{label_id}`

Updates the name of the matching label.

## Request body

- object
  - `data` object, required
    - `attributes` object, required
      - `name` string, required — A new name for the label.

## Response `200`

The updated label.

- object
  - `default_asset_type` Label
    - `id` string, required — Unique identifier for the resource instance.
    - `type` 'labels', required — The type of the resource.
    - `attributes` LabelAttributes, required
      - `name` string — The name of the label.
      - `path` unknown[] — Hierarchy of label IDs, starting with this label's ID.
        - unknown
      - `position` integer — Label location represented by a positive integer; `0` is the first position.
      - `depth` integer — The depth of the label hierarchy. A root level label's depth is `1`, a label with one parent has depth of `2`, and so on.

## Other responses

- `default` — Generic error payload

---

[API](https://skmtc.net/smartsheet/apis/brandfolder-openapi-reference.md) · [All operations](https://skmtc.net/smartsheet/apis/brandfolder-openapi-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smartsheet/brandfolder-openapi-reference/versions/fd95b0a2d2f8/schema)
