---
title: "Add a failure mode's example calls to Labs"
method: POST
path: "/observability/v1/metric-failure-mode-insights/{id}/fix-metric/"
tags: ["observability"]
---

# Add a failure mode's example calls to Labs

`POST /observability/v1/metric-failure-mode-insights/{id}/fix-metric/`

## Request

- Base URL: `https://api.cekura.ai`
- URL: `https://api.cekura.ai/observability/v1/metric-failure-mode-insights/{id}/fix-metric/`
- Auth: one of:
  - API key in header `X-CEKURA-API-KEY`
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Sample a few of one failure mode's example calls and add them to Labs as metric reviews for the insight's metric, with an optional `feedback` note and an optional corrected `expected_value` label (defaults to a pass). Select the failure mode with `failure_mode_index`. Overwrites any existing review for the same calls on this metric.

## Path parameters

- `id` integer, required

## Request body

- MetricFailureModeFixMetric: Request body for ``POST /metric-failure-mode-insights/{id}/fix_metric/``. Samples a few of one failure mode's example calls and adds them to Labs for the insight's metric, carrying the user's feedback as the note and ``expected_value`` as the corrected label.
  - `failure_mode_index` integer, required: Index into the insight's failure_modes list to act on.
  - `feedback` string: Optional human note attached to each sampled call's metric review in Labs. The corrected label alone is enough to iterate on the metric, so a blank note is accepted.
  - `expected_value` unknown

## Response `200`

- MetricFailureModeFixMetric: Request body for ``POST /metric-failure-mode-insights/{id}/fix_metric/``. Samples a few of one failure mode's example calls and adds them to Labs for the insight's metric, carrying the user's feedback as the note and ``expected_value`` as the corrected label.
  - `failure_mode_index` integer, required: Index into the insight's failure_modes list to act on.
  - `feedback` string: Optional human note attached to each sampled call's metric review in Labs. The corrected label alone is enough to iterate on the metric, so a blank note is accepted.
  - `expected_value` unknown

## Changes

- **2026-11-03** `a6fb6a739212`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cekura/apis/cekura-api/changes/observability/v1/metric-failure-mode-insights/:id/fix-metric/post.md)

---

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