attach label set
attach_label_setAttach a frozen golden set to a judge criterion to run calibration on that set and include its kappa in the certificate, or detach to clear the binding.
Instructions
Attach a frozen golden set to a judge criterion so its calibration runs on that set and its certificate carries the set's kappa — or detach it. POST /v1/label_sets/{id}/attach (API-key scope: evals:write). Returns: 200 { criterion_id: string, label_set_id: string|null } — the criterion's new golden-set binding. Notes: 400 'Freeze the golden set first — an unfrozen set can change under the calibration.' when the set has no frozen_at. 404 'Golden set not found' for foreign/unknown set ids (when attaching). A criterion holds at most one golden set; attaching replaces the previous one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The golden set id. Must be frozen to attach; ignored when detach=true. | |
| detach | No | When exactly true, clears the criterion's golden set (sets label_set_id to null) instead of attaching {id}. | |
| criterion_id | Yes | The judge criterion to attach the set to. Non-empty string required (400 'criterion_id is required'); 404 'Criterion not found' if not in the workspace. |