---
title: "Create Dataset Version"
method: POST
path: "/v1/datasets/{alias}/versions"
tags: ["Datasets"]
---

# Create Dataset Version

`POST /v1/datasets/{alias}/versions`

## Request

- Base URL: `https://api.confident-ai.com`
- URL: `https://api.confident-ai.com/v1/datasets/{alias}/versions`
- Auth: none declared
- TypeScript: <https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/docs/v1/datasets/:alias/versions/post.ts> (a function with typed inputs; its response is checked against the schema)

Snapshots the current state of the dataset as a new immutable version. If this
is the first version, all existing unversioned goldens are backfilled onto it.
Subsequent versions snapshot all goldens from the previous version (with new
IDs).

## Response `200`

- CreateDatasetVersionResponse
  - `success` boolean, required: Indicates if the request was successful
  - `data` object, required
    - `id` string, required
    - `version` string, required

## Changes

> 54 revisions in range; 3 not diffed.

- **2026-05-28** `d493eef38a58`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/changes/v1/datasets/:alias/versions/post.md)

---

[API](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api.md) - [All operations](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/revisions/95cdde71b65e?raw)
