dashboards
GET
https://lucidace.com /v1/projects/{project_id}/dashboards/{id}/results Scope dashboard:readParameters
project_idstringpathrequiredidstringpathrequiredrefreshbooleanqueryvariablesstringquerytilestringquerycompute only this tile
Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}/results"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"dashboard_id": "string",
"tiles": [
{
"error": "string",
"insight_id": "string",
"notes": [
"string"
],
"result": {
"columns": [
"string"
],
"meta": {
"bytes_read": 0,
"cache_hit": true,
"cache_key": "string",
"clamped_range": true,
"computed_at": "2024-01-01T00:00:00Z",
"execution_ms": 0,
"next_allowed_client_refresh": "2024-01-01T00:00:00Z",
"rows_read": 0,
"sampled": true,
"sql_hash": "string"
},
"rows": [
[
{}
]
]
},
"tile_id": "string"
}
]
}Schema
dashboard_idstringrequiredtilesTileResult[]requiredShow child parameters
errorstringWhy this tile failed; other tiles are unaffected.
insight_idstringrequirednotesstring[]requiredWhat the tile's own overrides changed from the dashboard's ("date range overrides the dashboard's", "ignores dashboard filters"); empty when nothing.
resultQueryResultShow child parameters
columnsstring[]requiredmetaobjectrequiredrowsobject[][]requiredtile_idstringrequired400
404
POST
https://lucidace.com /v1/projects/{project_id}/dashboards/{id}/save-as-template Scope dashboard:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
descriptionstringnamestringrequiredscopestringproject (default) or org: visible to every project of the org.tagsstring[]{
"description": "string",
"name": "string",
"scope": "string",
"tags": [
"string"
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}/save-as-template" \
-H "Content-Type: application/json" \
-d '{"description":"string","name":"string","scope":"string","tags":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"definition": {},
"description": "string",
"id": "string",
"name": "string",
"project_id": "string",
"scope": "string",
"tags": [
"string"
],
"updated_at": "2024-01-01T00:00:00Z",
"warnings": [
"string"
]
}Schema
created_atstringrequireddefinitionobjectrequireddescriptionstringrequiredidstringrequirednamestringrequiredproject_idstringrequiredThe project that owns it.
scopestringrequiredproject or org.tagsstring[]requiredupdated_atstringrequiredwarningsstring[]requiredProject-specific references (cohorts, actions, metrics, warehouse tables) that other projects will not have; set when the template is org-wide or copied to another project.
400
404
409 name taken
POST
https://lucidace.com /v1/projects/{project_id}/dashboards/{id}/tiles Scope dashboard:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
configobjectButton
{label, url, style?, placement?, transparent?} or widget {widget, limit?, ...} settings.ignore_dashboard_filtersbooleaninsight_idstringkindstringinsight, text, button or widget; inferred from insight_id / text_body when absent.layoutobjectoverridesobject{date_range?, interval?, breakdown?, filters?, special_filters?, filter_test_accounts?}.positionintegerDefaults to after the last tile.
text_bodystring{
"config": {},
"ignore_dashboard_filters": true,
"insight_id": "string",
"kind": "string",
"layout": {},
"overrides": {},
"position": 0,
"text_body": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}/tiles" \
-H "Content-Type: application/json" \
-d '{"config":{},"ignore_dashboard_filters":true,"insight_id":"string","kind":"string","layout":{},"overrides":{},"position":0,"text_body":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"config": {},
"dashboard_id": "string",
"id": "string",
"ignore_dashboard_filters": true,
"insight_id": "string",
"kind": "string",
"layout": {},
"overrides": {},
"position": 0,
"text_body": "string"
}Schema
configobjectrequiredButton (
{label, url, ...}) and widget ({widget, ...}) settings.dashboard_idstringrequiredidstringrequiredignore_dashboard_filtersbooleanrequiredThe tile ignores the dashboard's date range and filters.
insight_idstringkindstringrequiredinsight, text, button or widget.layoutobjectrequiredoverridesobjectrequiredTile-level overrides, merged over the dashboard's:
{date_range?, interval?, breakdown?, filters?, filter_test_accounts?}.positionintegerrequiredtext_bodystring400
403
404
DELETE
https://lucidace.com /v1/projects/{project_id}/dashboards/{id}/tiles/{tile_id} Scope dashboard:writeParameters
project_idstringpathrequiredidstringpathrequiredtile_idstringpathrequireddelete_insightbooleanqueryalso delete the insight everywhere
Code samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}/tiles/{tile_id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
PATCH
https://lucidace.com /v1/projects/{project_id}/dashboards/{id}/tiles/{tile_id} Scope dashboard:writeParameters
project_idstringpathrequiredidstringpathrequiredtile_idstringpathrequiredRequest body
application/json
configobjectignore_dashboard_filtersbooleanlayoutobjectoverridesobjectpositionintegertext_bodystring{
"config": {},
"ignore_dashboard_filters": true,
"layout": {},
"overrides": {},
"position": 0,
"text_body": "string"
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}/tiles/{tile_id}" \
-H "Content-Type: application/json" \
-d '{"config":{},"ignore_dashboard_filters":true,"layout":{},"overrides":{},"position":0,"text_body":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
POST
https://lucidace.com /v1/projects/{project_id}/dashboards/{id}/tiles/{tile_id}/copy Scope dashboard:writeParameters
project_idstringpathrequiredidstringpathrequiredtile_idstringpathrequiredRequest body
application/json
target_dashboard_idstringrequired{
"target_dashboard_id": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}/tiles/{tile_id}/copy" \
-H "Content-Type: application/json" \
-d '{"target_dashboard_id":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 the new tile on the target dashboard
Same as 201 · POST /v1/projects/{project_id}/dashboards/{id}/tiles
403
404
POST
https://lucidace.com /v1/projects/{project_id}/dashboards/{id}/tiles/{tile_id}/move Scope dashboard:writeParameters
project_idstringpathrequiredidstringpathrequiredtile_idstringpathrequiredRequest body
application/json
target_dashboard_idstringrequired{
"target_dashboard_id": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}/tiles/{tile_id}/move" \
-H "Content-Type: application/json" \
-d '{"target_dashboard_id":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
403
404
GET
https://lucidace.com /v1/projects/{project_id}/dashboards/{id}/tiles/{tile_id}/usage Scope dashboard:readParameters
project_idstringpathrequiredidstringpathrequiredtile_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}/tiles/{tile_id}/usage"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Dashboards the tile's insight sits on (the ones the caller may see), by name
Example
[
{
"dashboard_id": "string",
"name": "string",
"tile_id": "string"
}
]Schema
dashboard_idstringrequirednamestringrequiredtile_idstringrequired404
Updated