---
title: "Update Metrics"
method: PUT
path: "/v1/metrics/{id}"
tags: ["Metrics"]
---

# Update Metrics

`PUT /v1/metrics/{id}`

## Request

- Base URL: `https://api.confident-ai.com`
- URL: `https://api.confident-ai.com/v1/metrics/{id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/docs/v1/metrics/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates a custom metric on your Confident AI project.

## Request body

- UpdateMetric
  - `name` string: The name of the metric you're updating.
  - `criteria` string: The new criteria for this particular metric, that you want to update to.
  - `evaluationSteps` string: The new evaluation steps that you want to update for this metric.
  - `evaluationParams` union: It is an array of the params that will be used to evaluate your test cases.
    - string[]
    - string[]
  - `rubric` Rubric[]: 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)
    - `scoreRange` number[], required: An array consisting of the ranges of scores to generate.
    - `expectedOutcome` string, required: The expected outcome for your evaluation.

## Response `200`

- UpdateMetricResponse
  - `success` boolean, required: This is true if the metric was updated successfully.
  - `deprecated` boolean, required: This is true if this metrics endpoint is deprecated.

---

[API](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api.md) - [All operations](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/revisions/95cdde71b65e?raw)
