---
title: "Create Metric"
method: POST
path: "/metrics"
tags: ["Metrics"]
---

# Create Metric

`POST /metrics`

## Request body

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

## Response `200`

`Metric`

## Other responses

- `401` — Unauthenticated
- `403` — Authorization error
- `422` — Validation error

## Changes

- **2026-05-09** `64c2a336b25f` — 3 warning
  - removed the request property `calc_type`
  - removed the request property `display_chart`
  - removed the request property `places`
- **2025-12-02** `b912f4471de4` — 1 info
  - added the non-success response with the status `403`
- **2025-08-25** `c7bc597b862d` — 2 warning
  - removed the optional property `data/relationships/points/data/items/attributes` from the response with the `200` status
  - removed the optional property `data/relationships/points/data/items/relationships` from the response with the `200` status
- **2025-08-15** `5b3f1f21cf76` — 1 info
  - media type `application/json` was changed to a more specific media type `application/vnd.api+json` for the response status `200`
- **2025-06-02** `9ad32c73fe39` — 14 breaking, 9 warning
  - the response property `data/attributes/default_value` became nullable for the status `200`
  - the response property `data/attributes/description` became nullable for the status `200`
  - the `data/attributes/calc_type` response's property type/format changed from `string`/`` to `integer`/`` for status `200`
  - the `data/attributes/default_view` response's property type/format changed from `string`/`` to `integer`/`` for status `200`
  - …19 more

[Change history](https://skmtc.dev/cachethq/apis/cachet/changes/metrics/post.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/b7fcc33d06e5/schema)
