Update Metrics

Updates a custom metric on your Confident AI project.

Path parameters

idstringRequired
The id of the metric you wish to update.

Headers

CONFIDENT_API_KEYstringRequired
The API key of your Confident AI project.

Request

namestringOptional
The name of the metric you're updating.
criteriastringOptional
The new criteria for this particular metric, that you want to update to.
evaluationStepsstringOptional
The new evaluation steps that you want to update for this metric.
evaluationParamslist of enumsOptional
It is an array of the params that will be used to evaluate your test cases.
rubriclist of objectsOptional
A list of score ranges (0–10 inclusive). Must be in order and non-overlapping. Click here to [learn more](https://deepeval.com/docs/metrics-llm-evals#rubric)

Response

successboolean
This is true if the metric was updated successfully.
deprecatedboolean
This is true if this metrics endpoint is deprecated.