---
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
  - `tags` string[], nullable

## Response `200`

`Metric`

## Other responses

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

## Changes

- **2026-08-25** `96314e3ca8ef` — 3 breaking, 2 warning, 3 info
  - the `included/items/` response's property type changed from `object` to no type for status `200`
  - removed the required property `included/items/id` from the response with the `200` status
  - removed the required property `included/items/type` from the response with the `200` status
  - removed the optional property `included/items/attributes` from the response with the `200` status
  - …4 more
- **2026-07-27** `09d2b7258b3c` — 5 breaking
  - the `data/attributes/default_value` response's property type changed from `string, null` to `object, null` for status `200`
  - the `data/attributes/display_chart` response's property type changed from `boolean` to `integer` for status `200`
  - the `included/items/attributes/calculated_value` response's property type changed from `string` to `number` for status `200`
  - the `included/items/attributes/created/human` response's property type changed from `null` to `string, null` for status `200`
  - …1 more
- **2026-07-10** `4e4308be5bcf` — 4 breaking, 4 info
  - the response property `data/attributes/created/human` became nullable for the status `200`
  - the response property `data/attributes/created/string` became nullable for the status `200`
  - the response property `data/attributes/updated/human` became nullable for the status `200`
  - the response property `data/attributes/updated/string` became nullable for the status `200`
  - …4 more
- …earlier changes not shown

[Full history](https://skmtc.dev/cachethq/apis/cachet/changes/metrics/:metric/put.md)

---

[API](https://skmtc.dev/cachethq/apis/cachet.md) · [All operations](https://skmtc.dev/cachethq/apis/cachet/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cachethq/cachet/revisions/7f89fdcf710a/schema)
