Skip to main content
POST
https://api.rubric.ai
/
v1
/
samples
/
batch
Batch Upload
curl --request POST \
  --url https://api.rubric.ai/v1/samples/batch \
  --header 'Content-Type: application/json' \
  --data '
{
  "dataset": "<string>",
  "samples": [
    {}
  ]
}
'
Upload up to 1000 samples in a single request.
dataset
string
required
Dataset ID
samples
array
required
Array of sample objects
client.samples.batch_create(
    dataset="ds_xyz789",
    samples=[
        {"input": {...}, "expected": {...}},
        {"input": {...}, "expected": {...}},
        # up to 1000 samples
    ]
)