---
title: "Update Metric"
method: PATCH
path: "/core/metrics/{metric_id}"
tags: ["Metrics"]
---

# Update Metric

`PATCH /core/metrics/{metric_id}`

## 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/metrics/{metric_id}`
- Auth: HTTP bearer

Update a metric; providing `criteria` replaces the criteria set and
bumps definition_version (PRD §7-I versioning).

## Path parameters

- `metric_id` string, required

## Headers

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

## Request body

- MetricUpdateRequest: Schema for API requests to update a metric. `criteria`, when provided, is a full replacement of the metric's criteria (matched by key: existing keys update in place, missing keys archive, new keys create) and bumps definition_version.
  - `name` string, nullable
  - `description` string, nullable
  - `metric_kind` 'objective' | 'perceptual', nullable
  - `modality` 'transcript' | 'audio', nullable
  - `perceiver` string, nullable
  - `panel_size` integer, nullable
  - `routing_policy` object, nullable
  - `gate_predicate` object, nullable
  - `criteria` CriterionItemRequest[], nullable
    - `key` string, nullable
    - `question` string, required
    - `expected_value` boolean
    - `evidence_required` boolean
    - `na_rule` string, nullable
    - `applies_when` object, nullable
    - `applies_when_description` string, nullable
    - `source` 'judge' | 'deterministic'
    - `rule` object, nullable
    - `rule_description` string, nullable
    - `widget_hint` 'single_select' | 'checklist'
    - `display_order` integer
  - `archived_at` string, date-time, 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)
