custom-metrics

Override Metric Result

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.

patch/api/v1/custom-metrics/results/{result_id}/override

Path parameters

result_idstring uuid required

Request body

result_state'pass' | 'fail' | 'na' | 'not_run' | 'error' required
categorical_valuestring nullable
scorenumber nullable
reason'ai_hallucination' | 'incorrect_prompt' | 'other' required
notesstring nullable

Response

Successful Response

idstring uuid required
override_result_state'pass' | 'fail' | 'na' | 'not_run' | 'error' required
override_categorical_valuestring nullable
override_scorenumber nullable
override_reason'ai_hallucination' | 'incorrect_prompt' | 'other' required
override_notesstring nullable
overridden_atstring date-time required

Changes