---
title: "Upsert Golden Labels"
method: POST
path: "/core/calibration-sets/{set_id}/golden-labels"
tags: ["Calibration"]
---

# Upsert Golden Labels

`POST /core/calibration-sets/{set_id}/golden-labels`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/core/calibration-sets/{set_id}/golden-labels`
- Auth: HTTP bearer

Upsert golden labels — the regression gate for new judge versions.

## Path parameters

- `set_id` string, required

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Request body

- GoldenLabelsRequest: Schema for POST /calibration-sets/{id}/golden-labels.
  - `labels` GoldenLabelItemRequest[], required
    - `conversation_id` string, required
    - `criterion_id` string, required
    - `outcome` 'true' | 'false' | 'na', required
    - `rationale` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anyreach/apis/anyreach-api.md) - [All operations](https://skmtc.dev/anyreach/apis/anyreach-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anyreach/apis/anyreach-api/revisions/2eddf40c8c93?raw)
