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

---

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