Version v0.49 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
Metric
/api/metric endpoints.
DELETE /api/metric/:id
Archive a Metric. (DEPRECATED – Just pass updated value of :archived to the PUT endpoint instead.).
PARAMS:
-
idvalue must be an integer greater than zero. -
revision_messagevalue must be a non-blank string.
GET /api/metric/
Fetch all Metrics.
GET /api/metric/:id
Fetch Metric with ID.
PARAMS:
idvalue must be an integer greater than zero.
GET /api/metric/:id/related
Return related entities.
PARAMS:
idvalue must be an integer greater than zero.
GET /api/metric/:id/revisions
Fetch Revisions for Metric with ID.
PARAMS:
idvalue must be an integer greater than zero.
POST /api/metric/
Create a new Metric.
PARAMS:
-
namevalue must be a non-blank string. -
descriptionnullable string. -
table_idvalue must be an integer greater than zero. -
definitionmap.
POST /api/metric/:id/revert
Revert a Metric to a prior Revision.
PARAMS:
-
idvalue must be an integer greater than zero. -
revision_idvalue must be an integer greater than zero.
PUT /api/metric/:id
Update a Metric with ID.
PARAMS:
-
points_of_interestnullable string. -
descriptionnullable string. -
archivednullable boolean. -
definitionnullable map. -
revision_messagevalue must be a non-blank string. -
show_in_getting_startednullable boolean. -
namenullable value must be a non-blank string. -
caveatsnullable string. -
idvalue must be an integer greater than zero. -
how_is_this_calculatednullable string.
PUT /api/metric/:id/important_fields
Update the important Fields for a Metric with ID.
(This is used for the Getting Started guide).
You must be a superuser to do this.
PARAMS:
-
idvalue must be an integer greater than zero. -
important_field_idssequence of value must be an integer greater than zero.
Read docs for other versions of Metabase.