title | summary |
---|---|
Dashboard |
/api/dashboard endpoints. |
/api/dashboard endpoints.
- DELETE /api/dashboard/:dashboard-id/public_link
- DELETE /api/dashboard/:id
- DELETE /api/dashboard/:id/cards
- GET /api/dashboard/
- GET /api/dashboard/:id
- GET /api/dashboard/:id/params/:param-key/search/:query
- GET /api/dashboard/:id/params/:param-key/values
- GET /api/dashboard/:id/related
- GET /api/dashboard/:id/revisions
- GET /api/dashboard/embeddable
- GET /api/dashboard/params/valid-filter-fields
- GET /api/dashboard/public
- POST /api/dashboard/
- POST /api/dashboard/:dashboard-id/dashcard/:dashcard-id/card/:card-id/query
- POST /api/dashboard/:dashboard-id/dashcard/:dashcard-id/card/:card-id/query/:export-format
- POST /api/dashboard/:dashboard-id/public_link
- POST /api/dashboard/:from-dashboard-id/copy
- POST /api/dashboard/:id/cards
- POST /api/dashboard/:id/revert
- POST /api/dashboard/pivot/:dashboard-id/dashcard/:dashcard-id/card/:card-id/query
- POST /api/dashboard/save
- POST /api/dashboard/save/collection/:parent-collection-id
- PUT /api/dashboard/:id
- PUT /api/dashboard/:id/cards
Delete the publicly-accessible link to this Dashboard.
dashboard-id
Delete a Dashboard.
id
Remove a DashboardCard
from a Dashboard.
-
id
-
dashcardId
value must be a valid integer greater than zero.
Get Dashboards
. With filter option f
(default all
), restrict results as follows:
all
- Return all Dashboards.mine
- Return Dashboards created by the current user.archived
- Return Dashboards that have been archived. (By default, these are excluded.).
f
value may be nil, or if non-nil, value must be one of:all
,archived
,mine
.
Get Dashboard with ID.
id
Fetch possible values of the parameter whose ID is :param-key
that contain :query
. Optionally restrict
these values by passing query parameters like other-parameter=value
e.g.
;; fetch values for Dashboard 1 parameter 'abc' that contain 'Cam' and are possible when parameter 'def' is set
;; to 100
GET /api/dashboard/1/params/abc/search/Cam?def=100
Currently limited to first 1000 results.
-
id
-
param-key
-
query
-
query-params
Fetch possible values of the parameter whose ID is :param-key
. Optionally restrict these values by passing query
parameters like other-parameter=value
e.g.
;; fetch values for Dashboard 1 parameter 'abc' that are possible when parameter 'def' is set to 100
GET /api/dashboard/1/params/abc/values?def=100.
-
id
-
param-key
-
query-params
Return related entities.
id
Fetch Revisions
for Dashboard with ID.
id
Fetch a list of Dashboards where enable_embedding
is true
. The dashboards can be embedded using the embedding
endpoints and a signed JWT.
Utility endpoint for powering Dashboard UI. Given some set of filtered
Field IDs (presumably Fields used in
parameters) and a set of filtering
Field IDs that will be used to restrict values of filtered
Fields, for each
filtered
Field ID return the subset of filtering
Field IDs that would actually be used in a chain filter query
with these Fields.
e.g. in a chain filter query like
GET /api/dashboard/10/params/PARAM_1/values?PARAM_2=100
Assume PARAM_1
maps to Field 1 and PARAM_2
maps to Fields 2 and 3. The underlying MBQL query may or may not
filter against Fields 2 and 3, depending on whether an FK relationship that lets us create a join against Field 1
can be found. You can use this endpoint to determine which of those Fields is actually used:
GET /api/dashboard/params/valid-filter-fields?filtered=1&filtering=2&filtering=3
;; ->
{1 [2 3]}
Results are returned as a map of
`filtered` Field ID -> subset of `filtering` Field IDs that would be used in chain filter query.
-
filtered
value must satisfy one of the following requirements: 1) value must be a valid integer greater than zero. 2) value must be an array. Each value must be a valid integer greater than zero. The array cannot be empty. -
filtering
value may be nil, or if non-nil, value must satisfy one of the following requirements: 1) value must be a valid integer greater than zero. 2) value must be an array. Each value must be a valid integer greater than zero. The array cannot be empty.
Fetch a list of Dashboards with public UUIDs. These dashboards are publicly-accessible if public sharing is enabled.
Create a new Dashboard.
-
name
value must be a non-blank string. -
description
value may be nil, or if non-nil, value must be a string. -
parameters
value may be nil, or if non-nil, value must be an array. Each parameter must be a map with String :id key -
cache_ttl
value may be nil, or if non-nil, 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. -
collection_position
value may be nil, or if non-nil, value must be an integer greater than zero. -
_dashboard
Run the query associated with a Saved Question (Card
) in the context of a Dashboard
that includes it.
-
dashboard-id
-
dashcard-id
-
card-id
-
parameters
value may be nil, or if non-nil, value must be an array. Each value must be a parameter map with an 'id' key
Run the query associated with a Saved Question (Card
) in the context of a Dashboard
that includes it, 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).
-
dashboard-id
-
dashcard-id
-
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. -
request-parameters
Generate publicly-accessible links for this Dashboard. Returns UUID to be used in public links. (If this Dashboard has already been shared, it will return the existing public link rather than creating a new one.) Public sharing must be enabled.
You must be a superuser to do this.
dashboard-id
Copy a Dashboard.
-
from-dashboard-id
-
name
value may be nil, or if non-nil, value must be a non-blank string. -
description
value may be nil, or if non-nil, value must be a string. -
collection_id
value may be nil, or if non-nil, value must be an integer greater than zero. -
collection_position
value may be nil, or if non-nil, value must be an integer greater than zero. -
_dashboard
Add a Card
to a Dashboard.
-
id
-
cardId
value may be nil, or if non-nil, value must be an integer greater than zero. -
parameter_mappings
value must be an array. Each value must be a map. -
dashboard-card
Revert a Dashboard to a prior Revision
.
-
id
-
revision_id
value must be an integer greater than zero.
Run a pivot table query for a specific DashCard.
-
dashboard-id
-
dashcard-id
-
card-id
-
parameters
value may be nil, or if non-nil, value must be an array. Each value must be a parameter map with an 'id' key
Save a denormalized description of dashboard.
dashboard
Save a denormalized description of dashboard into collection with ID :parent-collection-id
.
-
parent-collection-id
-
dashboard
Update a Dashboard.
Usually, you just need write permissions for this Dashboard to do this (which means you have appropriate
permissions for the Cards belonging to this Dashboard), but to change the value of enable_embedding
you must be a
superuser.
-
parameters
value may be nil, or if non-nil, value must be an array. Each parameter must be a map with String :id key -
points_of_interest
value may be nil, or if non-nil, value must be a string. -
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. -
show_in_getting_started
value may be nil, or if non-nil, value must be a boolean. -
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. -
dash-updates
-
name
value may be nil, or if non-nil, value must be a non-blank string. -
caveats
value may be nil, or if non-nil, value must be a 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. -
id
-
position
value may be nil, or if non-nil, value must be an integer greater than zero.
Update Cards
on a Dashboard. Request body should have the form:
{:cards [{:id ... ; DashboardCard ID
:sizeX ...
:sizeY ...
:row ...
:col ...
:parameter_mappings ...
:series [{:id 123
...}]}
...]}.
-
id
-
cards
value must be an array. Each value must be a valid DashboardCard map. The array cannot be empty.