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}/dashboard-templatesScope dashboard:read

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/dashboard-templates"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Built-in templates first, then the project's own (no pagination: bounded)
Example
{
  "data": [
    {
      "builtin": true,
      "description": "string",
      "id": "string",
      "name": "string",
      "origin": "string",
      "project_id": "string",
      "references": [
        "string"
      ],
      "tags": [
        "string"
      ],
      "tiles": 0
    }
  ],
  "next_cursor": "string"
}
Schema
dataobject[]required
Show child parameters
builtinbooleanrequired
descriptionstringrequired
idstringrequired
namestringrequired
originstringrequired
builtin, project or org.
project_idstring
The project that owns it; none for built-ins.
referencesstring[]required
Project-specific things the definition refers to (cohorts, actions, warehouse tables).
tagsstring[]required
tilesintegerrequired
next_cursorstring
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/dashboard-templates/{id}Scope dashboard:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/dashboard-templates/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
404
PATCHhttps://lucidace.com/v1/projects/{project_id}/dashboard-templates/{id}Scope dashboard:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
descriptionstring
namestring
scopestring
project or org.
tagsarray
{
  "description": "string",
  "name": "string",
  "scope": "string",
  "tags": [
    "string"
  ]
}

Code samples

cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/dashboard-templates/{id}" \
  -H "Content-Type: application/json" \
  -d '{"description":"string","name":"string","scope":"string","tags":["string"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 warnings lists references that dangle once the template is org-wide
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 not a template of this project
409 name taken
POSThttps://lucidace.com/v1/projects/{project_id}/dashboard-templates/{id}/copyScope dashboard:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
target_project_idstringrequired
Another project of the same org.
{
  "target_project_id": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/dashboard-templates/{id}/copy" \
  -H "Content-Type: application/json" \
  -d '{"target_project_id":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 the copy, project-scoped, named <name> (copy) when the name is taken

Same as 200 · PATCH /v1/projects/{project_id}/dashboard-templates/{id}

403
404
POSThttps://lucidace.com/v1/projects/{project_id}/dashboard-templates/{id}/instantiateScope dashboard:write

Parameters

project_idstringpathrequired
idstringpathrequired
Template uuid or builtin:<key>

Request body

application/json
flag_keystring
builtin:form-response only: the experiment's flag key. The "Response rate by experiment arm" funnel then counts only exposures to this flag ($feature_flag = flag_key).
namestring
Name of the new dashboard (defaults to the template's).
{
  "flag_key": "string",
  "name": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/dashboard-templates/{id}/instantiate" \
  -H "Content-Type: application/json" \
  -d '{"flag_key":"string","name":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 A new dashboard whose insights are new copies
Example
{
  "created_at": "2024-01-01T00:00:00Z",
  "created_by": "string",
  "description": "string",
  "filters": {},
  "folder_id": "string",
  "id": "string",
  "name": "string",
  "pinned": true,
  "project_id": "string",
  "tags": [
    "string"
  ],
  "updated_at": "2024-01-01T00:00:00Z"
}
Schema
created_atstringrequired
created_bystring
descriptionstringrequired
filtersobjectrequired
Dashboard-level overrides: {date_range?: {from, to}, filters?: PropertyGroup}.
folder_idstring
The folder it sits in (see object_acl); null = top level.
idstringrequired
namestringrequired
pinnedbooleanrequired
project_idstringrequired
tagsstring[]required
updated_atstringrequired
400
404
GEThttps://lucidace.com/v1/projects/{project_id}/dashboardsScope dashboard:read

Parameters

project_idstringpathrequired
limitintegerquery
qstringquery
folder_idstringquery
a folder id, or none for dashboards in no folder
cursorstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/dashboards"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Page of Dashboard, newest first
Example
{
  "data": [
    {
      "created_at": "2024-01-01T00:00:00Z",
      "created_by": "string",
      "description": "string",
      "filters": {},
      "folder_id": "string",
      "id": "string",
      "name": "string",
      "pinned": true,
      "project_id": "string",
      "tags": [
        "string"
      ],
      "updated_at": "2024-01-01T00:00:00Z"
    }
  ],
  "next_cursor": "string"
}
Schema
dataDashboard[]required
Show child parameters
created_atstringrequired
created_bystring
descriptionstringrequired
filtersobjectrequired
Dashboard-level overrides: {date_range?: {from, to}, filters?: PropertyGroup}.
folder_idstring
The folder it sits in (see object_acl); null = top level.
idstringrequired
namestringrequired
pinnedbooleanrequired
project_idstringrequired
tagsstring[]required
updated_atstringrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/dashboardsScope dashboard:write

Parameters

project_idstringpathrequired

Request body

application/json
descriptionstring
filtersobject
Overrides applied to every insight tile: {date_range?: {from, to}, filters?: PropertyGroup, variables?: [{name, kind, default}]}; tiles opt into variables via layout.variables.
namestringrequired
pinnedboolean
tagsstring[]
{
  "description": "string",
  "filters": {},
  "name": "string",
  "pinned": true,
  "tags": [
    "string"
  ]
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/dashboards" \
  -H "Content-Type: application/json" \
  -d '{"description":"string","filters":{},"name":"string","pinned":true,"tags":["string"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404
POSThttps://lucidace.com/v1/projects/{project_id}/dashboards/bulk-deleteScope dashboard:write

Parameters

project_idstringpathrequired

Request body

application/json
delete_orphan_insightsboolean
Also delete insights that are on no other dashboard afterwards.
idsstring[]required
1 to 100 dashboards.
{
  "delete_orphan_insights": true,
  "ids": [
    "string"
  ]
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/dashboards/bulk-delete" \
  -H "Content-Type: application/json" \
  -d '{"delete_orphan_insights":true,"ids":["string"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "deleted": [
    "string"
  ],
  "insights_deleted": 0,
  "skipped": [
    "string"
  ]
}
Schema
deletedstring[]required
insights_deletedintegerrequired
skippedstring[]required
Dashboards the caller may not edit (or that need approval, or are gone): left alone.
400 none or more than 100 ids
403
404

Updated