Version v0.43 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
/api/segment endpoints.
DELETE /api/segment/:idArchive a Segment. (DEPRECATED – Just pass updated value of :archived to the PUT endpoint instead.).
id
revision_message value must be a non-blank string.
GET /api/segment/Fetch all Segments.
GET /api/segment/:idFetch Segment with ID.
idGET /api/segment/:id/relatedReturn related entities.
idGET /api/segment/:id/revisionsFetch Revisions for Segment with ID.
idPOST /api/segment/Create a new Segment.
name value must be a non-blank string.
description value may be nil, or if non-nil, value must be a string.
table_id value must be an integer greater than zero.
definition value must be a map.
POST /api/segment/:id/revertRevert a Segement to a prior Revision.
id
revision_id value must be an integer greater than zero.
PUT /api/segment/:idUpdate a Segment with ID.
points_of_interest value may be nil, or if non-nil, value must be a string.
description value may be nil, or if non-nil, value must be a string.
archived value may be nil, or if non-nil, value must be a boolean.
definition value may be nil, or if non-nil, value must be a map.
revision_message value must be a non-blank string.
show_in_getting_started value may be nil, or if non-nil, value must be a boolean.
name value may be nil, or if non-nil, value must be a non-blank string.
caveats value may be nil, or if non-nil, value must be a string.
id