Version v0.50 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
Legacy metric
/api/legacy-metric endpoints.
DELETE /api/legacy-metric/:id
Archive a LegacyMetric. (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/legacy-metric/
Fetch all LegacyMetrics.
GET /api/legacy-metric/:id
Fetch LegacyMetric with ID.
PARAMS:
idvalue must be an integer greater than zero.
GET /api/legacy-metric/:id/related
Return related entities.
PARAMS:
idvalue must be an integer greater than zero.
GET /api/legacy-metric/:id/revisions
Fetch Revisions for LegacyMetric with ID.
PARAMS:
idvalue must be an integer greater than zero.
POST /api/legacy-metric/
Create a new LegacyMetric.
PARAMS:
-
namevalue must be a non-blank string. -
descriptionnullable string. -
table_idvalue must be an integer greater than zero. -
definitionmap.
POST /api/legacy-metric/:id/revert
Revert a LegacyMetric to a prior Revision.
PARAMS:
-
idvalue must be an integer greater than zero. -
revision_idvalue must be an integer greater than zero.
PUT /api/legacy-metric/:id
Update a LegacyMetric 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/legacy-metric/:id/important_fields
Update the important Fields for a LegacyMetric 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.