dashboards

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-dashboards"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/762ede6d-1249-459e-9c7f-3150f8f9979c/social-card.svg?v=3e7ae33eec8b" alt="dashboards" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}/resultsScope dashboard:read

Parameters

project_idstringpathrequired
idstringpathrequired
refreshbooleanquery
variablesstringquery
tilestringquery
compute 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_idstringrequired
tilesTileResult[]required
Show child parameters
errorstring
Why this tile failed; other tiles are unaffected.
insight_idstringrequired
notesstring[]required
What the tile's own overrides changed from the dashboard's ("date range overrides the dashboard's", "ignores dashboard filters"); empty when nothing.
resultQueryResult
Show child parameters
columnsstring[]required
metaobjectrequired
rowsobject[][]required
tile_idstringrequired
400
404
POSThttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}/save-as-templateScope dashboard:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
descriptionstring
namestringrequired
scopestring
project (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_atstringrequired
definitionobjectrequired
descriptionstringrequired
idstringrequired
namestringrequired
project_idstringrequired
The project that owns it.
scopestringrequired
project or org.
tagsstring[]required
updated_atstringrequired
warningsstring[]required
Project-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
POSThttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}/tilesScope dashboard:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
configobject
Button {label, url, style?, placement?, transparent?} or widget {widget, limit?, ...} settings.
ignore_dashboard_filtersboolean
insight_idstring
kindstring
insight, text, button or widget; inferred from insight_id / text_body when absent.
layoutobject
overridesobject
{date_range?, interval?, breakdown?, filters?, special_filters?, filter_test_accounts?}.
positioninteger
Defaults 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
configobjectrequired
Button ({label, url, ...}) and widget ({widget, ...}) settings.
dashboard_idstringrequired
idstringrequired
ignore_dashboard_filtersbooleanrequired
The tile ignores the dashboard's date range and filters.
insight_idstring
kindstringrequired
insight, text, button or widget.
layoutobjectrequired
overridesobjectrequired
Tile-level overrides, merged over the dashboard's: {date_range?, interval?, breakdown?, filters?, filter_test_accounts?}.
positionintegerrequired
text_bodystring
400
403
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}/tiles/{tile_id}Scope dashboard:write

Parameters

project_idstringpathrequired
idstringpathrequired
tile_idstringpathrequired
delete_insightbooleanquery
also 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
PATCHhttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}/tiles/{tile_id}Scope dashboard:write

Parameters

project_idstringpathrequired
idstringpathrequired
tile_idstringpathrequired

Request body

application/json
configobject
ignore_dashboard_filtersboolean
layoutobject
overridesobject
positioninteger
text_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

Responses

400
403
404
POSThttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}/tiles/{tile_id}/copyScope dashboard:write

Parameters

project_idstringpathrequired
idstringpathrequired
tile_idstringpathrequired

Request 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
POSThttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}/tiles/{tile_id}/moveScope dashboard:write

Parameters

project_idstringpathrequired
idstringpathrequired
tile_idstringpathrequired

Request 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

200 the tile on its new dashboard

Same as 201 · POST /v1/projects/{project_id}/dashboards/{id}/tiles

403
404
GEThttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}/tiles/{tile_id}/usageScope dashboard:read

Parameters

project_idstringpathrequired
idstringpathrequired
tile_idstringpathrequired

Code 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_idstringrequired
namestringrequired
tile_idstringrequired
404
Updated