Version v0.45 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
Action
/api/action/ endpoints.
DELETE /api/action/:action-id
PARAMS:
action-id
GET /api/action/
Returns cards that can be used for QueryActions.
PARAMS:
model-idvalue must be an integer greater than zero.
GET /api/action/:action-id
PARAMS:
action-id
POST /api/action/
Create a new HTTP action.
PARAMS:
-
typeOnly http actions are supported at this time. -
namevalue must be a string. -
templatevalue must be a map with schema: ( body (optional) : value may be nil, or if non-nil, value must be a string. headers (optional) : value may be nil, or if non-nil, value must be a string. parameter_mappings (optional) : value may be nil, or if non-nil, value must be a map. parameters (optional) : value may be nil, or if non-nil, value must be an array. Each value must be a map. method : value must be one of:DELETE,GET,PATCH,POST,PUT. url : value must be a string. ) -
response_handlevalue may be nil, or if non-nil, must be a valid json-query -
error_handlevalue may be nil, or if non-nil, must be a valid json-query -
action
PUT /api/action/:id
PARAMS:
-
idvalue must be an integer greater than zero. -
typeOnly http actions are supported at this time. -
namevalue may be nil, or if non-nil, value must be a string. -
templatevalue may be nil, or if non-nil, value must be a map with schema: ( body (optional) : value may be nil, or if non-nil, value must be a string. headers (optional) : value may be nil, or if non-nil, value must be a string. parameter_mappings (optional) : value may be nil, or if non-nil, value must be a map. parameters (optional) : value may be nil, or if non-nil, value must be an array. Each value must be a map. method : value must be one of:DELETE,GET,PATCH,POST,PUT. url : value must be a string. ) -
response_handlevalue may be nil, or if non-nil, must be a valid json-query -
error_handlevalue may be nil, or if non-nil, must be a valid json-query -
action
Read docs for other versions of Metabase.