---
title: "Override Metric Result"
method: PATCH
path: "/api/v1/custom-metrics/results/{result_id}/override"
tags: ["custom-metrics"]
---

# Override Metric Result

`PATCH /api/v1/custom-metrics/results/{result_id}/override`

Override a metric result with a human-corrected outcome.

The override becomes authoritative for display in the Logs table and Insights tab.
The original LLM result is preserved in the base columns for audit trail.

## Path parameters

- `result_id` string, uuid, required

## Request body

- MetricResultOverrideRequest — Request body for PATCH /custom-metrics/results/{id}/override.
  - `result_state` 'pass' | 'fail' | 'na' | 'not_run' | 'error', required
  - `categorical_value` string, nullable
  - `score` number, nullable
  - `reason` 'ai_hallucination' | 'incorrect_prompt' | 'other', required
  - `notes` string, nullable

## Response `200`

Successful Response

- MetricResultOverrideResponse — Response for PATCH /custom-metrics/results/{id}/override.
  - `id` string, uuid, required
  - `override_result_state` 'pass' | 'fail' | 'na' | 'not_run' | 'error', required
  - `override_categorical_value` string, nullable
  - `override_score` number, nullable
  - `override_reason` 'ai_hallucination' | 'incorrect_prompt' | 'other', required
  - `override_notes` string, nullable
  - `overridden_at` string, date-time, required

## Other responses

- `401` — Authentication required
- `404` — Custom metric not found
- `422` — Validation Error

## Changes

> 28 revisions in range; 1 not diffed.

- **2026-09-03** `d65b8fefae34` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/getanana/apis/cleon-api/changes/api/v1/custom-metrics/results/:result_id/override/patch.md)

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getanana/apis/cleon-api/revisions/6b978a517225?raw)
