Skip to main content
POST
Add an accumulating failure category's example calls to Labs

Authorizations

Authorization
string
header
required

OAuth access token issued by Cekura for connected apps.

Path Parameters

category_slug
string
required
Pattern: ^[^/]+$

Body

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.

Required range: x >= 0
feedback
string
required

Human note attached to each sampled call's metric review in Labs.

expected_value
any | null

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.

Response

200 - application/json

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.

Required range: x >= 0
feedback
string
required

Human note attached to each sampled call's metric review in Labs.

expected_value
any | null

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.