---
title: "POST /api/measure"
method: POST
path: "/api/measure"
tags: ["/api/measure"]
---

# POST /api/measure

`POST /api/measure`

Create a new `Measure`.

## Request body

- object
  - `definition` object, required — Value must be a map.
  - `description` string, nullable
  - `name` string, required
  - `table_id` integer, required — value must be an integer greater than zero.

## Response `2XX`

Successful response

- MetabaseMeasuresApiMeasure — Schema for a Measure entity as returned from the API.
  - `archived` boolean, required
  - `created_at` unknown, required
  - `creator` object, nullable
  - `creator_id` integer, required — value must be an integer greater than zero.
  - `definition` object, required
  - `description` string, nullable
  - `dimension_mappings` object[], nullable
  - `dimensions` object[], nullable
  - `entity_id` string, nullable
  - `id` integer, required — value must be an integer greater than zero.
  - `name` string, required
  - `result_column_name` string, nullable
  - `table_id` integer, required — value must be an integer greater than zero.
  - `updated_at` unknown, required

## Other responses

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

## Changes

- **2026-05-22** `b1dc4ea67567` — 3 info
  - added the optional property `dimension_mappings` to the response with the `2XX` status
  - added the optional property `dimensions` to the response with the `2XX` status
  - added the optional property `result_column_name` to the response with the `2XX` status
- **2026-03-09** `78297d193ca4` — 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added
- **2026-01-20** `bd1deee7eae2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/measure/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-service-production.skmtc.workers.dev/v1/apis/metabase/metabase-api/revisions/b1dc4ea67567/schema)
