---
title: "Update composite metric"
method: PUT
path: "/v1/metrics/{name}"
tags: ["metrics"]
---

# Update composite metric

`PUT /v1/metrics/{name}`

Update a composite metric given a metric name.

## Path parameters

- `name` string, required

## Request body

- MetricsUpdateCompositeMetricRequest
  - `displayName` string, nullable — Display name of the composite metric. A short description of the metric.
  - `description` string, nullable — Description of the composite metric. A detailed description of the metric.
  - `formula` string, required — PromQL query to calculate the composite metric.
  - `units` string, nullable — Unit of the composite metric.

## Response `200`

The request has succeeded.

- MetricsCompositeMetric
  - `name` string, required — Name of the composite metric.
  - `displayName` string, nullable — Display name of the composite metric. A short description of the metric.
  - `description` string, nullable — Description of the composite metric. A detailed description of the metric.
  - `formula` string, required — PromQL query to calculate the composite metric.
  - `units` string, nullable — Unit of the composite metric.

## Other responses

- `400` — The server could not understand the request due to invalid syntax.
- `401` — Access is unauthorized.
- `403` — Access is forbidden.
- `404` — The server cannot find the requested resource.
- `500` — Server error

---

[API](https://skmtc.net/solarwinds/apis/solarwinds-observability.md) · [All operations](https://skmtc.net/solarwinds/apis/solarwinds-observability/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/solarwinds/solarwinds-observability/versions/994e5ca64961/schema)
