---
title: "Create a dataset label"
method: POST
path: "/v1/dataset_labels"
tags: ["datasets"]
---

# Create a dataset label

`POST /v1/dataset_labels`

## Request body

- CreateDatasetLabelRequestBody
  - `name` string, required — The name of the dataset label
  - `color` string, required — A lowercase hex color code (e.g. '#00cc88') used to display the label
  - `description` string, nullable — An optional description of the dataset label

## Response `201`

Successful Response

- CreateDatasetLabelResponseBody
  - `data` DatasetLabel, required
    - `id` string, required
    - `name` string, required
    - `description` string, nullable, required
    - `color` string, required

## Other responses

- `403` — Forbidden
- `409` — A dataset label with the same name already exists
- `422` — Invalid request body

## Changes

- **2026-07-03** `d947a16d700d` — 1 info
  - endpoint added
- **2026-04-29** `c81391216eb5` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/arize-ai/apis/arize-phoenix-rest-api/changes/v1/dataset_labels/post.md)

---

[API](https://skmtc.dev/arize-ai/apis/arize-phoenix-rest-api.md) · [All operations](https://skmtc.dev/arize-ai/apis/arize-phoenix-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/arize-ai/arize-phoenix-rest-api/revisions/f440cb6427a5/schema)
