> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cekura.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Metric Failure Mode Insight Category Example Calls to Labs

> Sample the latest calls in one persistent failure category and add them to Labs for its metric, with `feedback` as the note and an optional corrected `expected_value` label (defaults to a pass).



## OpenAPI

````yaml post /observability/v1/metric-failure-mode-insights/categories/{category_slug}/fix-metric/
openapi: 3.1.0
info:
  title: Cekura API
  version: v1
  description: >-
    Complete API documentation for the Cekura platform. This API provides
    endpoints for testing, observing, and evaluating AI voice agents — including
    managing agents, running evaluators, defining metrics, and analyzing call
    quality.
servers:
  - url: https://api.cekura.ai
security: []
paths:
  /observability/v1/metric-failure-mode-insights/categories/{category_slug}/fix-metric/:
    post:
      tags:
        - observability
      summary: Add an accumulating failure category's example calls to Labs
      description: >-
        Sample the latest calls in one persistent failure category and add them
        to Labs for its metric, with `feedback` as the note and an optional
        corrected `expected_value` label (defaults to a pass).
      operationId: metric-failure-mode-insights-categories-fix-metric-create
      parameters:
        - in: path
          name: category_slug
          schema:
            type: string
            pattern: ^[^/]+$
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetricFailureModeFixMetric'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/MetricFailureModeFixMetric'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/MetricFailureModeFixMetric'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetricFailureModeFixMetric'
          description: ''
      security:
        - api_key: []
components:
  schemas:
    MetricFailureModeFixMetric:
      type: object
      description: >-
        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.
      properties:
        failure_mode_index:
          type: integer
          minimum: 0
          description: Index into the insight's failure_modes list to act on.
        feedback:
          type: string
          description: Human note attached to each sampled call's metric review in Labs.
        expected_value:
          oneOf:
            - {}
            - type: 'null'
          description: >-
            Corrected label to record for each sampled call in Labs: true/false
            for binary metrics, a 0-5 score for ratings, a number for numeric
            metrics, or null for N/A. Defaults to a passing value when omitted.
      required:
        - failure_mode_index
        - feedback
  securitySchemes:
    api_key:
      type: apiKey
      name: X-CEKURA-API-KEY
      in: header
      description: >-
        API Key Authentication. It should be included in the header of each
        request.

````