Skip to main content
POST
Add Dataset Trajectories

Authorizations

X-API-Key
string
header
required

Organization API key

Headers

Idempotency-Key
string

Optional. Without a key, repeated submissions are treated as separate actions. A blank or over-long key is rejected. Reuse this key when retrying a submission; the SDK generates one per call and reuses it across automatic retries.

Required string length: 1 - 256

Path Parameters

dataset_id
string
required
Minimum string length: 1

Body

application/json
filter
RewardThresholdFilter · object
required
training_run_ids
string[]

Succeeded or cancelled training runs whose completed train attempts join the train split.

Required string length: 1 - 64
eval_run_ids
string[]

Completed eval runs whose scored attempts join the heldout split.

Required string length: 1 - 64

Response

Successful Response

Asynchronous add of trajectories to a draft dataset.

operation_id
string
required

Identifier to poll for the add's status.

dataset_id
string
required

The draft the trajectories are added to.

status
enum<string>
required

queued until a worker starts it; the draft can be finalized once it has finished.

Available options:
queued,
running,
succeeded,
failed
added_count
integer
required

Trajectories added to the draft so far.

Required range: x >= 0
skipped_count
integer
required

Selected trajectories skipped because the draft already had them.

Required range: x >= 0
error
AsyncFailure · object | null
required

Why the add failed, once failed; trajectories added before it stay.

source_errors
AsyncFailure · object[]
required

Any failed run IDs and their failure reasons; trajectories from the other runs stay.

created_at
string<date-time>
required

Time the add was accepted.

completed_at
string<date-time> | null
required

Time the add succeeded or failed.