---
title: "Create a dataset split"
method: POST
path: "/v1/datasets/{dataset_identifier}/splits"
tags: ["datasets"]
---

# Create a dataset split

`POST /v1/datasets/{dataset_identifier}/splits`

## Path parameters

- `dataset_identifier` string, required — The dataset identifier: either dataset ID or dataset name.

## Request body

- CreateDatasetSplitRequestBody
  - `name` string, required — A unique name for the split.
  - `description` string, nullable — An optional description of the split.
  - `color` string, nullable — An optional hex color for the split (e.g. #33c5e8). Omit for a default.
  - `metadata` object — Arbitrary JSON metadata for the split.
  - `example_ids` string[] — Optional dataset example IDs (GlobalIDs) to seed the split with. Each example must belong to this dataset. Omit to create an empty split.

## Response `201`

Successful Response

- CreateDatasetSplitResponseBody
  - `data` DatasetSplit, required
    - `id` string, required
    - `name` string, required
    - `description` string, nullable, required
    - `color` string, required
    - `metadata` object, required
    - `example_count` integer, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `403` — Forbidden
- `404` — Dataset or example not found
- `409` — A dataset split with the given name already exists
- `422` — Invalid request

---

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