---
title: "Edit metric metadata"
method: PUT
path: "/api/v1/metrics/{metric_name}"
tags: ["Metrics"]
---

# Edit metric metadata

`PUT /api/v1/metrics/{metric_name}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v1/metrics/{metric_name}`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Edit metadata of a specific metric. Find out more about [supported types](https://docs.datadoghq.com/developers/metrics).

## Path parameters

- `metric_name` string, required

## Request body

- MetricMetadata: Object with all metric related metadata.
  - `description` string: Metric description.
  - `integration` string: Name of the integration that sent the metric if applicable.
  - `per_unit` string: Per unit of the metric such as `second` in `bytes per second`.
  - `short_name` string: A more human-readable and abbreviated version of the metric name.
  - `statsd_interval` integer: StatsD flush interval of the metric in seconds if applicable.
  - `type` string: Metric type such as `gauge` or `rate`.
  - `unit` string: Primary unit of the metric such as `byte` or `operation`.

## Response `200`

OK

- MetricMetadata: Object with all metric related metadata.
  - `description` string: Metric description.
  - `integration` string: Name of the integration that sent the metric if applicable.
  - `per_unit` string: Per unit of the metric such as `second` in `bytes per second`.
  - `short_name` string: A more human-readable and abbreviated version of the metric name.
  - `statsd_interval` integer: StatsD flush interval of the metric in seconds if applicable.
  - `type` string: Metric type such as `gauge` or `rate`.
  - `unit` string: Primary unit of the metric such as `byte` or `operation`.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v1-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v1-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v1-collection/revisions/ca5871004d26?raw)
