---
title: "Update Metric"
method: PUT
path: "/api/v1/custom-metrics/{metric_id}"
tags: ["Custom Metrics"]
---

# Update Metric

`PUT /api/v1/custom-metrics/{metric_id}`

## Request

- Base URL: `https://api.brandbooster.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.brandbooster.ai/api/v1/custom-metrics/{metric_id}`
- Auth: HTTP bearer

## Path parameters

- `metric_id` string, uuid, required

## Request body

- CustomMetricUpdate
  - `name` string, nullable
  - `description` string, nullable
  - `formula` FormulaToken[], nullable
    - `type` string, required
    - `value` string, required
  - `format` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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