/v1/private/datasets/itemsCreate/update dataset itemsCreate/update dataset items based on dataset item id. Each item's 'id' field is the stable identifier and upsert key. Provide it to update an existing item, or omit it to create a new one.
Set 'copy_from_dataset_id' and 'copy_from_version_id' together to read carry-forward rows from the supplied (dataset, version) pair instead of the destination's prior version. When the fields are null, carry-forward rows are read from the destination's prior version.
Request body
application/json
batch_group_idstring · uuidOptional batch group ID to group multiple batches into a single dataset version. If null, mutates the latest version instead of creating a new one.
copy_from_dataset_idstring · uuidOptional. Dataset to read carry-forward rows from when materializing the new version. Required together with copy_from_version_id. When null, carry-forward rows are read from the destination dataset's prior version.
copy_from_version_idstring · uuidOptional. Version within copy_from_dataset_id to read carry-forward rows from. Required together with copy_from_dataset_id.
dataset_idstring · uuidIf null, dataset_name must be provided
dataset_namestringIf null, dataset_id must be provided
itemsarray of objectrequiredShow child attributes
Show array items
dataobjectrequireddescriptionstringevaluatorsarray of objectShow child attributes
Show array items
configobjectrequirednamestringrequiredtypestringrequiredexecution_policyobjectShow child attributes
pass_thresholdinteger · int32runs_per_iteminteger · int32idstring · uuidStable item identifier. On write, used as the upsert key. If omitted, a new ID is generated. Remains the same across dataset versions
sourcestringrequiredspan_idstring · uuidtagsarray of stringShow child attributes
trace_idstring · uuidproject_idstring · uuidOptional. Associates the batch with a project by ID. Takes precedence over project_name.
project_namestringOptional. Associates the batch with a project by name. Ignored if project_id is provided.
{
"batch_group_id": "00000000-0000-0000-0000-000000000000",
"copy_from_dataset_id": "00000000-0000-0000-0000-000000000000",
"copy_from_version_id": "00000000-0000-0000-0000-000000000000",
"dataset_id": "00000000-0000-0000-0000-000000000000",
"dataset_name": "string",
"items": [
{
"data": {},
"description": "string",
"evaluators": [
{
"config": {},
"name": "string",
"type": "code_metric"
}
],
"execution_policy": {
"pass_threshold": 0,
"runs_per_item": 0
},
"id": "00000000-0000-0000-0000-000000000000",
"source": "manual",
"span_id": "00000000-0000-0000-0000-000000000000",
"tags": [
"string"
],
"trace_id": "00000000-0000-0000-0000-000000000000"
}
],
"project_id": "00000000-0000-0000-0000-000000000000",
"project_name": "string"
}