Version v0.45 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
Model action
API endpoints for Model action.
DELETE /api/model-action/:model-action-id
Endpoint to delete an action.
PARAMS:
model-action-id
GET /api/model-action/
Endpoint to fetch actions for a model, must filter with card-id=.
PARAMS:
card-idvalue must be an integer greater than zero.
POST /api/model-action/
Endpoint to associate an action with a model.
PARAMS:
-
card_idvalue must be an integer greater than zero. -
action_idvalue may be nil, or if non-nil, value must be an integer greater than zero. -
slugvalue must be a non-blank string. -
requires_pkvalue must be a boolean. -
parameter_mappingsvalue may be nil, or if non-nil, value must be an array. Each parameter_mapping must be a map with :parameter_id and :target keys -
visualization_settingsvalue may be nil, or if non-nil, value must be a map.
PUT /api/model-action/:model-action-id
Endpoint to modify an action of a model.
PARAMS:
-
model-action-id -
action_idvalue may be nil, or if non-nil, value must be an integer greater than zero. -
slugvalue may be nil, or if non-nil, value must be a non-blank string. -
requires_pkvalue may be nil, or if non-nil, value must be a boolean. -
parameter_mappingsvalue may be nil, or if non-nil, value must be an array. Each parameter_mapping must be a map with :parameter_id and :target keys -
visualization_settingsvalue may be nil, or if non-nil, value must be a map.
Read docs for other versions of Metabase.