Version v0.52 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
Notify
/api/notify/* endpoints which receive inbound etl server notifications.
POST /api/notify/db/:id
Notification about a potential schema change to one of our Databases.
Caller can optionally specify a :table_id or :table_name in the body to limit updates to a single
Table. Optional Parameter :scan can be "full" or "schema" for a full sync or a schema sync, available
regardless if a :table_id or :table_name is passed.
This endpoint is secured by an API key that needs to be passed as a X-METABASE-APIKEY header which needs to be defined in
the MB_API_KEY environment variable.
PARAMS:
-
idvalue must be an integer greater than zero. -
table_idnullable value must be an integer greater than zero. -
table_namenullable value must be a non-blank string. -
scannullable enum of full, schema. -
synchronous?
POST /api/notify/db/:id/new-table
Sync a new table without running a full database sync. Requires schema_name and table_name. Will throw an error
if the table already exists in Metabase or cannot be found.
PARAMS:
-
idvalue must be an integer greater than zero. -
schema_namevalue must be a non-blank string. -
table_namevalue must be a non-blank string.
POST /api/notify/db/attached_datawarehouse
Sync the attached datawarehouse. Can provide in the body:
- table_name and schema_name: both strings. Will look for an existing table and sync it, otherwise will try to find a new table with that name and sync it. If it cannot find a table it will throw an error. If table_name is empty or blank, will sync the entire database.
- synchronous?: is a boolean value to indicate if this should block on the result.
PARAMS:
-
table_namenullable value must be a non-blank string. -
schema_namenullable string. -
synchronous?nullable value must be a valid boolean string (‘true’ or ‘false’).
Read docs for other versions of Metabase.