Update dataset
Endpoint: PUT /datasets/{dataset_id}
Description
Updates a custom dataset you own. All body fields are optional; only provided fields are applied. You can rename the dataset, change selected_metrics, adjust column_mappings, or set data_collection_id.
Parameters
- Path:
dataset_id— integer. - Body —
application/json:
{
"name": "string | null",
"selected_metrics": { "1": 70, "2": 80 } | null,
"column_mappings": { "prompt": "col_a", "output": "col_b" } | null,
"data_collection_id": 14 | null,
"org_id": "integer | null"
}
Error responses
401— Authentication failed.403— Not allowed to update this dataset.422— Invalid body.404— Dataset not found.400— Invalid metrics, emptyselected_metrics, invalidcolumn_mappings, data collection not found, duplicate name, etc.500— Server error.
Responses
200— Updated dataset summary (DatasetResponse), same shape as one element ofitemsfrom Get all datasets (paginated).
curl
curl -X PUT "https://api.aegisevals.ai/api/v1/datasets/3" \
-H "Authorization: Bearer sk_00000000000000000000000000000000" \
-H "Content-Type: application/json" \
-d '{"name":"Renamed dataset","selected_metrics":{"1":75,"2":85}}'