Version v0.43 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
Native query snippet (/api/native-query-snippet) endpoints.
GET /api/native-query-snippet/Fetch all snippets.
archived value may be nil, or if non-nil, value must be a valid boolean string (‘true’ or ‘false’).GET /api/native-query-snippet/:idFetch native query snippet with ID.
idPOST /api/native-query-snippet/Create a new NativeQuerySnippet.
content value must be a string.
description value may be nil, or if non-nil, value must be a string.
name snippet names cannot include } or start with spaces
collection_id value may be nil, or if non-nil, value must be an integer greater than zero.
PUT /api/native-query-snippet/:idUpdate an existing NativeQuerySnippet.
id
archived value may be nil, or if non-nil, value must be a boolean.
content 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.
name value may be nil, or if non-nil, snippet names cannot include } or start with spaces
collection_id value may be nil, or if non-nil, value must be an integer greater than zero.