---
title: "POST /api/metric/{id}/dimension/add"
method: POST
path: "/api/metric/{id}/dimension/add"
tags: ["/api/metric"]
---

# POST /api/metric/{id}/dimension/add

`POST /api/metric/{id}/dimension/add`

## Request

- Base URL: `` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/metric/{id}/dimension/add`
- Auth: API key in header `X-API-Key`

Add dimensions to a metric. Each entry carries its UUID and mapping target; the column-derived fields and mapping
  are recomputed server-side.

  Returns the updated list of dimensions.

## Path parameters

- `id` integer, required

## Request body

- object
  - `dimensions` object[], required
    - `description` string, nullable
    - `display_name` string: value must be a non-blank string.
    - `id` string, required: value must be a non-blank string.
    - `mapping_target` unknown[], required
      - unknown

## Response `2XX`

Successful response

- object[]

## Other responses

- `4XX`: Client error response
- `5XX`: Server error response

## Changes

- **2026-11-04** `2e178f5a7934`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/metric/:id/dimension/add/post.md)

---

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