---
title: "Create a split"
method: POST
path: "/beta/dataset/{dataset_id}/split"
tags: ["Dataset"]
---

# Create a split

`POST /beta/dataset/{dataset_id}/split`

## Request

- Base URL: `https://api.friendli.ai`
- URL: `https://api.friendli.ai/beta/dataset/{dataset_id}/split`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/friendli/apis/friendli-suite-api-reference/docs/beta/dataset/:dataset_id/split/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new split in the dataset.

## Path parameters

- `dataset_id` string, required: ID of the dataset.

## Query parameters

- `name` string, required

## Headers

- `X-Friendli-Team` string, nullable: ID of team to run requests as (optional parameter).

## Response `200`

OK

- SplitInfo: Split info.
  - `id` string, required: ID of the split.
  - `name` string, required: Name of the split.
  - `createdAt` integer, required: Unix timestamp (in seconds) of when the split was created.
  - `updatedAt` integer, required: Unix timestamp (in seconds) of when the split was last modified.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/friendli/apis/friendli-suite-api-reference.md) - [All operations](https://skmtc.dev/friendli/apis/friendli-suite-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/friendli/apis/friendli-suite-api-reference/revisions/38fb43993a11?raw)
