---
title: "POST /api/v1/public/snapshots/create"
method: POST
path: "/api/v1/public/snapshots/create"
tags: ["Public Snapshots"]
---

# POST /api/v1/public/snapshots/create

`POST /api/v1/public/snapshots/create`

Create snapshot from dataset with train/validation split

## Request body

- CreateSnapshotRequest
  - `dataset_id` string, uuid, required — Dataset ID to snapshot. The dataset must belong to the authenticated workspace.
  - `split_percentage` integer — Percentage of datapoints to assign to training. Remaining datapoints go to validation.

## Response `200`

Snapshot created successfully

- SnapshotResponse
  - `snapshot_id` string, uuid, required

## Other responses

- `400` — Bad request
- `404` — Dataset not found
- `500` — Internal server error

## Changes

- **2025-11-12** `25d63a01824a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/premai-io/apis/prem-studio-api/changes/api/v1/public/snapshots/create/post.md)

---

[API](https://skmtc.dev/premai-io/apis/prem-studio-api.md) · [All operations](https://skmtc.dev/premai-io/apis/prem-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/premai-io/prem-studio-api/revisions/2cb1f5df1b89/schema)
