---
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

---

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