Version v0.45 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
Native query snippet
Native query snippet (/api/native-query-snippet) endpoints.
GET /api/native-query-snippet/
Fetch all snippets.
PARAMS:
archivedvalue may be nil, or if non-nil, value must be a valid boolean string (‘true’ or ‘false’).
GET /api/native-query-snippet/:id
Fetch native query snippet with ID.
PARAMS:
id
POST /api/native-query-snippet/
Create a new NativeQuerySnippet.
PARAMS:
-
contentvalue must be a string. -
descriptionvalue may be nil, or if non-nil, value must be a string. -
namesnippet names cannot include } or start with spaces -
collection_idvalue may be nil, or if non-nil, value must be an integer greater than zero.
PUT /api/native-query-snippet/:id
Update an existing NativeQuerySnippet.
PARAMS:
-
id -
archivedvalue may be nil, or if non-nil, value must be a boolean. -
contentvalue 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. -
namevalue may be nil, or if non-nil, snippet names cannot include } or start with spaces -
collection_idvalue may be nil, or if non-nil, value must be an integer greater than zero.
Read docs for other versions of Metabase.