Version v0.49 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
Segment
/api/segment endpoints.
DELETE /api/segment/:id
Archive a Segment. (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/segment/
Fetch all Segments.
GET /api/segment/:id
Fetch Segment with ID.
PARAMS:
idvalue must be an integer greater than zero.
GET /api/segment/:id/related
Return related entities.
PARAMS:
idvalue must be an integer greater than zero.
GET /api/segment/:id/revisions
Fetch Revisions for Segment with ID.
PARAMS:
idvalue must be an integer greater than zero.
POST /api/segment/
Create a new Segment.
PARAMS:
-
namevalue must be a non-blank string. -
descriptionnullable string. -
table_idvalue must be an integer greater than zero. -
definitionValue must be a map.
POST /api/segment/:id/revert
Revert a Segement to a prior Revision.
PARAMS:
-
idvalue must be an integer greater than zero. -
revision_idvalue must be an integer greater than zero.
PUT /api/segment/:id
Update a Segment 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.
Read docs for other versions of Metabase.