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

# Update Metric

`PUT /metrics/{metric}`

## Path parameters

- `metric` integer, required

## Request body

- UpdateMetricRequestData
  - `name` string, nullable
  - `suffix` string, nullable
  - `description` string, nullable
  - `default_value` number, nullable
  - `threshold` integer, nullable

## Response `200`

`Metric`

## Other responses

- `401` — Unauthenticated
- `403` — Authorization error
- `404` — Not found
- `422` — Validation error

---

[API](https://skmtc.net/cachethq/apis/cachet.md) · [All operations](https://skmtc.net/cachethq/apis/cachet/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cachethq/cachet/versions/1cae90969eb9/schema)
