Version v0.48 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:
archivednullable value must be a valid boolean string (‘true’ or ‘false’).
GET /api/native-query-snippet/:id
Fetch native query snippet with ID.
PARAMS:
idvalue must be an integer greater than zero.
POST /api/native-query-snippet/
Create a new NativeQuerySnippet.
PARAMS:
-
contentstring -
descriptionnullable string -
namesnippet names cannot include } or start with spaces -
collection_idnullable value must be an integer greater than zero.
PUT /api/native-query-snippet/:id
Update an existing NativeQuerySnippet.
PARAMS:
-
idvalue must be an integer greater than zero. -
archivednullable boolean -
contentnullable string -
descriptionnullable string -
namenullable snippet names cannot include } or start with spaces -
collection_idnullable value must be an integer greater than zero.
Read docs for other versions of Metabase.