Skip to main content
POST
Attach a label set

Authorizations

Authorization
string
header
required

Your workspace API key, e.g. sk_sovereign_..., sent as Authorization: Bearer <key>.

Path Parameters

id
string
required

Identifier.

Body

application/json
criterion_id
string
required

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.

detach
boolean

When exactly true, clears the criterion's golden set (sets label_set_id to null) instead of attaching {id}.

Response

200 { criterion_id: string, label_set_id: string|null } — the criterion's new golden-set binding.

The response is of type object.