Version v0.47 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:
-
id -
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:
id
GET /api/segment/:id/revisions
Fetch Revisions for Segment with ID.
PARAMS:
id
POST /api/segment/
Create a new Segment.
PARAMS:
-
namevalue must be a non-blank string. -
descriptionvalue may be nil, or if non-nil, value must be a 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:
-
id -
revision_idvalue must be an integer greater than zero.
PUT /api/segment/:id
Update a Segment with ID.
PARAMS:
-
points_of_interestvalue may be nil, or if non-nil, value must be a string. -
descriptionvalue may be nil, or if non-nil, value must be a string. -
archivedvalue may be nil, or if non-nil, value must be a boolean. -
definitionvalue may be nil, or if non-nil, value must be a map. -
revision_messagevalue must be a non-blank string. -
show_in_getting_startedvalue may be nil, or if non-nil, value must be a boolean. -
namevalue may be nil, or if non-nil, value must be a non-blank string. -
caveatsvalue may be nil, or if non-nil, value must be a string. -
id
Read docs for other versions of Metabase.