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

# Create Metric

`POST /metrics`

## Request body

- CreateMetricRequestData
  - `name` string, required
  - `suffix` string, required
  - `calc_type` 0 | 1
  - `description` string, nullable
  - `default_value` number, nullable
  - `display_chart` boolean, nullable
  - `threshold` integer, nullable
  - `places` integer, nullable

## Response `200`

`Metric`

## Other responses

- `401` — Unauthenticated
- `403` — Authorization error
- `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)
