---
title: "Create a label"
method: POST
path: "/brandfolders/{brandfolder_id}/labels"
tags: ["labels"]
---

# Create a label

`POST /brandfolders/{brandfolder_id}/labels`

Creates a label in the matching Brandfolder.

## Request body

- object
  - `data` object, required
    - `attributes` object, required
      - `name` string, required — Sets a name for the label.
      - `parent_key` string — Set this to the ID of the label's parent label, if any. If you're creating a root-level label, don't specify this property.

## Response `200`

The new label.

- object
  - `data` Label, required
    - `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)
