Skip to main content
POST
Upload dataset from JSON, JSONL, CSV, or PyArrow

Query Parameters

sync
boolean
default:false

If true, fulfill request synchronously and return JSON containing dataset_id.

Body

name
string
required
inputs
object[]
required
action
enum<string>
Available options:
create,
append,
update
description
string
outputs
object[]
metadata
object[]
splits
(string | string[] | null)[]

Split per example: string, string array, or null

span_ids
(string | null)[]

Span IDs to link examples back to spans

example_ids
(string | null)[]

Optional example ID per example. If provided, it is used as the example's stable public ID.

Response

UploadDatasetResponseBody · object | null

Successful Response

data
UploadDatasetData · object
required