Version v0.43 of Metabase is no longer supported. Check out the docs for the current stable version, Metabase v0.63.
/api/card endpoints.
DELETE /api/card/:card-id/public_linkDelete the publicly-accessible link to this Card.
card-idDELETE /api/card/:idDelete a Card. (DEPRECATED – don’t delete a Card anymore – archive it instead.).
idGET /api/card/Get all the Cards. Option filter param f can be used to change the set of Cards that are returned; default is
all, but other options include mine, bookmarked, database, table, recent, popular, and archived. See
corresponding implementation functions above for the specific behavior of each filter option. :card_index:.
f value may be nil, or if non-nil, value must be one of: all, archived, bookmarked, database, mine, popular, recent, table.
model_id value may be nil, or if non-nil, value must be an integer greater than zero.
GET /api/card/:idGet Card with ID.
idGET /api/card/:id/relatedReturn related entities.
idGET /api/card/:id/timelinesGet the timelines for card with ID. Looks up the collection the card is in and uses that.
id
include value may be nil, or if non-nil, value must be one of: events.
start value may be nil, or if non-nil, value must be a valid date string
end value may be nil, or if non-nil, value must be a valid date string
GET /api/card/embeddableFetch a list of Cards where enable_embedding is true. The cards can be embedded using the embedding endpoints
and a signed JWT.
GET /api/card/publicFetch a list of Cards with public UUIDs. These cards are publicly-accessible if public sharing is enabled.
POST /api/card/Create a new Card.
visualization_settings value must be a map.
description value may be nil, or if non-nil, value must be a non-blank string.
collection_position value may be nil, or if non-nil, value must be an integer greater than zero.
result_metadata value may be nil, or if non-nil, value must be an array of valid results column metadata maps.
collection_id value may be nil, or if non-nil, value must be an integer greater than zero.
name value must be a non-blank string.
cache_ttl value may be nil, or if non-nil, value must be an integer greater than zero.
dataset_query
display value must be a non-blank string.
POST /api/card/:card-id/public_linkGenerate publicly-accessible links for this Card. Returns UUID to be used in public links. (If this Card has already been shared, it will return the existing public link rather than creating a new one.) Public sharing must be enabled.
card-idPOST /api/card/:card-id/queryRun the query associated with a Card.
card-id
parameters
ignore_cache value may be nil, or if non-nil, value must be a boolean.
dashboard_id value may be nil, or if non-nil, value must be an integer greater than zero.
collection_preview value may be nil, or if non-nil, value must be a boolean.
POST /api/card/:card-id/query/:export-formatRun the query associated with a Card, and return its results as a file in the specified format.
parameters should be passed as query parameter encoded as a serialized JSON string (this is because this endpoint
is normally used to power ‘Download Results’ buttons that use HTML form actions).
card-id
export-format value must be one of: api, csv, json, xlsx.
parameters value may be nil, or if non-nil, value must be a valid JSON string.
POST /api/card/:id/copyCopy a Card, with the new name ‘Copy of name’.
id value may be nil, or if non-nil, value must be an integer greater than zero.POST /api/card/collectionsBulk update endpoint for Card Collections. Move a set of Cards with CARD_IDS into a Collection with
COLLECTION_ID, or remove them from any Collections by passing a null COLLECTION_ID.
card_ids value must be an array. Each value must be an integer greater than zero.
collection_id value may be nil, or if non-nil, value must be an integer greater than zero.
POST /api/card/pivot/:card-id/queryRun the query associated with a Card.
card-id
parameters
ignore_cache value may be nil, or if non-nil, value must be a boolean.
POST /api/card/relatedReturn related entities for an ad-hoc query.
queryPUT /api/card/:idUpdate a Card.
visualization_settings value may be nil, or if non-nil, value must be a map.
dataset value may be nil, or if non-nil, value must be a boolean.
description value may be nil, or if non-nil, value must be a string.
archived value may be nil, or if non-nil, value must be a boolean.
collection_position value may be nil, or if non-nil, value must be an integer greater than zero.
result_metadata value may be nil, or if non-nil, value must be an array of valid results column metadata maps.
enable_embedding value may be nil, or if non-nil, value must be a boolean.
collection_id value may be nil, or if non-nil, value must be an integer greater than zero.
card-updates
name value may be nil, or if non-nil, value must be a non-blank string.
embedding_params value may be nil, or if non-nil, value must be a valid embedding params map.
cache_ttl value may be nil, or if non-nil, value must be an integer greater than zero.
dataset_query value may be nil, or if non-nil, value must be a map.
id
display value may be nil, or if non-nil, value must be a non-blank string.