Update extra column
Endpoint: PUT /datasets/{dataset_id}/extra-columns/{column_id}
Description
Renames an extra column's label on a custom dataset. The column id and type are unchanged; existing per-record values are preserved. Labels follow the same uniqueness rules as Create extra column.
Sharing rules
Custom datasets only. You must own the dataset or belong to the dataset's organization when it is org-shared.
Parameters
- Path:
dataset_id— integer;column_id— string matchingcol_[0-9a-f]{8}(otherwise422). - Body —
application/json:
{
"label": "Reviewer notes"
}
label— required string (1–64 characters, trimmed, non-empty).
Error responses
401— Authentication failed.400— Not a custom dataset; duplicate label (same rules as create).403— Permission denied (same as create).404— Dataset not found; orExtra column '{column_id}' not found.422— Invalidcolumn_idpath format; empty or whitespacelabel.500—An error occurred while updating the extra column.
Responses
200— Updated column definition ({ id, label, type }).
Example response (200)
{
"id": "col_aabbccdd",
"label": "Reviewer notes",
"type": "text"
}
curl
curl -X PUT "https://api.aegisevals.ai/api/v1/datasets/42/extra-columns/col_aabbccdd" \
-H "Authorization: Bearer sk_00000000000000000000000000000000" \
-H "Content-Type: application/json" \
-d '{"label": "Reviewer notes"}'