Version v0.48 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
Alert
/api/alert endpoints.
DELETE /api/alert/:id/subscription
For users to unsubscribe themselves from the given alert.
PARAMS:
idvalue must be an integer greater than zero.
GET /api/alert/
Fetch alerts which the current user has created or will receive, or all alerts if the user is an admin.
The optional user_id will return alerts created by the corresponding user, but is ignored for non-admin users.
PARAMS:
-
archivednullable value must be a valid boolean string (‘true’ or ‘false’). -
user_idnullable value must be an integer greater than zero.
GET /api/alert/:id
Fetch an alert by ID.
PARAMS:
idvalue must be an integer greater than zero.
GET /api/alert/question/:id
Fetch all alerts for the given question (Card) id.
PARAMS:
-
idnullable value must be an integer greater than zero. -
archivednullable value must be a valid boolean string (‘true’ or ‘false’).
POST /api/alert/
Create a new Alert.
PARAMS:
-
alert_conditionenum of rows, goal -
cardvalue must be a map with the keysid,include_csv,include_xls, anddashboard_card_id. -
channelsone or more map -
alert_first_onlyboolean -
alert_above_goalnullable boolean -
new-alert-request-body
PUT /api/alert/:id
Update a Alert with ID.
PARAMS:
-
idvalue must be an integer greater than zero. -
alert_conditionnullable enum of rows, goal -
alert_first_onlynullable boolean -
alert_above_goalnullable boolean -
cardnullable value must be a map with the keysid,include_csv,include_xls, anddashboard_card_id. -
channelsnullable one or more map -
archivednullable boolean -
alert-updates
Read docs for other versions of Metabase.