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

Authorizations

X-CEKURA-API-KEY
string
header
required

API Key Authentication. It should be included in the header of each request.

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
default:""

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
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
default:""

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
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.