Skip to main content
POST
Create a dataset

Authorizations

Authorization
string
header
required

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

Body

application/json
datasetName
string
required

The unique dataset name

Required string length: 3 - 30
Example:

"German Credit refined"

description
string | null

The dataset description in plain text

Required string length: 3 - 150
Example:

"Refined German Credit data, 4 buckets"

numberOfBuckets
integer
Required range: 4 <= x <= 1000
featureRefinementKey
string<uuid> | null

Build this dataset from a completed refinement instead of from uploaded files. Its refined train and test files and the threshold it trained to come across with it, so no upload target is returned. Its bucket count comes across as the default: the cleaning here starts from scratch, so a caller that sends its own bucket count above is honoured.

Response

Dataset successfully created

datasetKey
string<uuid>
required
Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[4][0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$
status
enum<string>
required

Status of dataset creation:

  • PENDING - The dataset has been created and is pending further actions. Mainly data addition
  • PROCESSING - The dataset is currently being processed. When this status is returned an url to check status is returned too
  • COMPLETED - The dataset has been processed and is completed. The dataset is now ready to be used for training models
  • FAILED - The dataset processing has failed
Available options:
PENDING,
PROCESSING,
COMPLETED,
FAILED
datasetCreationProgressUrl
string
required
numberOfBuckets
integer
datasetUploadInfo
object

Where to PUT the CSV on the single-file route. Prefer uploadTargets, which names each file it expects.

uploadUrl is a signed URL valid for 60 minutes. PUT the CSV as a binary body with Content-Type: text/csv and every header listed in extraHeaders (one colon-joined Name:value pair per header, semicolon-separated). Send no Authorization header: the signature covers the request, and an extra header breaks it.

uploadTargets
object[]

Where to PUT each input file. A dataset built from a train and a labelled test file returns one target per file; a dataset whose files came from a completed refinement returns none, because nothing is uploaded. Empty on the single-file pipeline.