Skip to main content
POST
/
api
/
v1
/
public
/
datasets
/
{datasetId}
/
create-labels
cURL
curl --request POST \
  --url http://studio.premai.io/api/v1/public/datasets/{datasetId}/create-labels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label_definitions": [
    {
      "name": "<string>",
      "description": "<string>"
    }
  ]
}
'
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

datasetId
string<uuid>
required

Body

application/json
label_definitions
object[]
required

Array of label definitions to use for auto-labeling

Required array length: 1 - 10 elements

Response

Labels created successfully

message
string
required