---
title: "POST /api/v1/public/datasets/{datasetId}/create-labels"
method: POST
path: "/api/v1/public/datasets/{datasetId}/create-labels"
tags: ["Public Datasets"]
---

# POST /api/v1/public/datasets/{datasetId}/create-labels

`POST /api/v1/public/datasets/{datasetId}/create-labels`

Create labels for a dataset

## Path parameters

- `datasetId` string, uuid, required

## Request body

- StartAutoLabelingRequest
  - `label_definitions` object[], required — Array of label definitions to use for auto-labeling
    - `name` string, required — Label name (single word, max 20 characters)
    - `description` string, required — Label description (max 200 characters)

## Response `200`

Labels created successfully

- StartAutoLabelingResponse
  - `message` string, required

## Other responses

- `400` — Bad request
- `404` — Dataset not found
- `409` — Dataset is currently processing
- `500` — Internal server error

## Changes

- **2025-12-12** `2cb1f5df1b89` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/premai-io/apis/prem-studio-api/changes/api/v1/public/datasets/:datasetId/create-labels/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)
