/v1/private/datasets/items/batchBatch update dataset itemsUpdate multiple dataset items
Request body
application/json
Request to batch update multiple dataset items
dataset_idstring · uuidDataset ID. Required when using 'filters', optional when using 'ids'.
filtersarray of objectShow child attributes
Show array items
Filters to select dataset items to delete within the specified dataset. Must be used with 'dataset_id'. Mutually exclusive with 'item_ids'. Empty array means 'delete all items in the dataset'.
fieldstringkeystringoperatorstringvaluestringidsarray of string · uuidList of dataset item IDs to update (max 1000). Mutually exclusive with 'filters'.
Show child attributes
merge_tagsbooleanIf true, merge tags with existing tags instead of replacing them. Default: false. When using 'filters', this is automatically set to true.
updateobjectrequiredDataset item update request
Show child attributes
clear_execution_policybooleanWhen true, clears the item-level execution policy (falls back to dataset-level)
dataobjectdescriptionstringDataset item description
evaluatorsarray of objectEvaluators
Show child attributes
Show array items
configobjectrequirednamestringrequiredtypestringrequiredexecution_policyobjectShow child attributes
pass_thresholdinteger · int32runs_per_iteminteger · int32expected_outputstringDataset item expected output
inputstringDataset item input
metadataobjecttagsarray of stringTags
Show child attributes
tags_to_addarray of stringTags to add
Show child attributes
tags_to_removearray of stringTags to remove
Show child attributes
{
"dataset_id": "00000000-0000-0000-0000-000000000000",
"filters": [
{
"field": "string",
"key": "string",
"operator": "!=",
"value": "string"
}
],
"ids": [
"00000000-0000-0000-0000-000000000000"
],
"merge_tags": true,
"update": {
"clear_execution_policy": true,
"data": {},
"description": "string",
"evaluators": [
{
"config": {},
"name": "string",
"type": "code_metric"
}
],
"execution_policy": {
"pass_threshold": 0,
"runs_per_item": 0
},
"expected_output": "string",
"input": "string",
"metadata": {},
"tags": [
"string"
],
"tags_to_add": [
"string"
],
"tags_to_remove": [
"string"
]
}
}Responses
codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}