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

---

[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/versions/2cb1f5df1b89/schema)
