> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/api-reference/platform-apis/dashboards/dashboards.md).

# Dashboards

## Download data within a Dashboard

> Download the data of all tiles within a Dashboard.

```json
{"openapi":"3.0.2","info":{"title":"Dashboards Open API","version":"1.0.0"},"paths":{"/api/dashboards/{dashboard_id}/download":{"get":{"tags":["dashboards"],"description":"Download the data of all tiles within a Dashboard.","summary":"Download data within a Dashboard","operationId":"get_dashboard_data","parameters":[{"in":"path","name":"dashboard_id","schema":{"type":"string"},"required":true},{"in":"query","name":"file_type","schema":{"type":"string","enum":["csv"]},"required":true},{"in":"query","name":"filters","schema":{"type":"string"},"required":false}],"responses":{"200":{"description":"Returns files of a specified type within a ZIP file for each tile within a Dashboard.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardDownloadResponse"}}}},"400":{"description":"Please specify a valid File Type.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Dashboard not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"default":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"DashboardDownloadResponse":{"type":"object","properties":{"file":{"type":"string","format":"byte"}}},"ErrorResponse":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"integer"},"correlationId":{"type":"string"},"responseMessages":{"type":"string"}},"required":["code","error","responseMessages"]}}}}
```

## GET /dashboards/{dashboard\_id}/elements

> Get all elements within a dashboard by ID.

```json
{"openapi":"3.0.2","info":{"title":"Dashboards Open API","version":"1.0.0"},"paths":{"/dashboards/{dashboard_id}/elements":{"get":{"tags":["dashboards"],"description":"Get all elements within a dashboard by ID.","operationId":"get_dashboard_elements","parameters":[{"in":"path","name":"dashboard_id","schema":{"type":"string"},"required":true},{"in":"query","name":"accountId","schema":{"type":"string"},"required":false}],"responses":{"200":{"description":"Returns all of the elements within a dashboard.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDashboardElementsResponse"}}}},"404":{"description":"Dashboard or dashboard elements not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"default":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"GetDashboardElementsResponse":{"type":"object","properties":{"resource":{"type":"array","items":{"$ref":"#/components/schemas/DashboardElements"}}},"required":["resource"]},"DashboardElements":{"type":"object","properties":{"id":{"type":"string"},"dashboard_id":{"type":"string"},"title_text":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"type":{"type":"string"}},"required":["dashboard_id","id","type"]},"ErrorResponse":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"integer"},"correlationId":{"type":"string"},"responseMessages":{"type":"string"}},"required":["code","error","responseMessages"]}}}}
```

## GET /dashboards/{dashboard\_id}/filters

> Get all filters within a dashboard by ID.

```json
{"openapi":"3.0.2","info":{"title":"Dashboards Open API","version":"1.0.0"},"paths":{"/dashboards/{dashboard_id}/filters":{"get":{"tags":["dashboards"],"description":"Get all filters within a dashboard by ID.","operationId":"get_dashboard_filters","parameters":[{"in":"path","name":"dashboard_id","schema":{"type":"string"},"required":true},{"in":"query","name":"accountId","schema":{"type":"string"},"required":false}],"responses":{"200":{"description":"Returns all of the filters within a dashboard.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDashboardFiltersResponse"}}}},"404":{"description":"Dashboard or dashboard filters not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"default":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"GetDashboardFiltersResponse":{"type":"object","properties":{"resource":{"type":"array","items":{"$ref":"#/components/schemas/DashboardFilter"}}},"required":["resource"]},"DashboardFilter":{"type":"object","properties":{"id":{"type":"string"},"dashboard_id":{"type":"string"},"default_value":{"type":"string"},"explore":{"type":"string"},"model":{"type":"string"},"name":{"type":"string","nullable":true},"row":{"type":"integer","nullable":true},"title":{"type":"string","nullable":true},"ui_config":{"type":"object"}},"required":["dashboard_id","default_value","explore","id","model","ui_config"]},"ErrorResponse":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"integer"},"correlationId":{"type":"string"},"responseMessages":{"type":"string"}},"required":["code","error","responseMessages"]}}}}
```

## POST /clone

> Clone a dashboard.

```json
{"openapi":"3.0.2","info":{"title":"Dashboards Open API","version":"1.0.0"},"paths":{"/clone":{"post":{"tags":["dashboards"],"description":"Clone a dashboard.","operationId":"clone_dashboard","parameters":[{"in":"query","name":"accountId","schema":{"type":"string"},"required":false}],"requestBody":{"description":"Clone a Dashboard","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneDashboardRequestBody"}}}},"responses":{"200":{"description":"Returns the newly created dashboard's details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClonedDashboardResponse"}}}},"default":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"CloneDashboardRequestBody":{"type":"object","properties":{"dashboardId":{"type":"string"},"folderId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}},"required":["dashboardId"]},"ClonedDashboardResponse":{"type":"object","properties":{"resource":{"$ref":"#/components/schemas/ClonedDashboard"}},"required":["resource"]},"ClonedDashboard":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"resourceIdentifier":{"type":"string"}},"required":["description","id","resourceIdentifier","title"]},"ErrorResponse":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"integer"},"correlationId":{"type":"string"},"responseMessages":{"type":"string"}},"required":["code","error","responseMessages"]}}}}
```

## GET /dashboards/{dashboard\_id}

> Get all details of a dashboard by ID.

```json
{"openapi":"3.0.2","info":{"title":"Dashboards Open API","version":"1.0.0"},"paths":{"/dashboards/{dashboard_id}":{"get":{"tags":["dashboards"],"description":"Get all details of a dashboard by ID.","operationId":"get_dashboard","parameters":[{"in":"path","name":"dashboard_id","schema":{"type":"string"},"required":true},{"in":"query","name":"accountId","schema":{"type":"string"},"required":false}],"responses":{"200":{"description":"Returns the details of a dashboard.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDashboardResponse"}}}},"default":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"GetDashboardResponse":{"type":"object","properties":{"resource":{"$ref":"#/components/schemas/Dashboard"}},"required":["resource"]},"Dashboard":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["ACCOUNT","SHARED"]},"description":{"type":"string"},"title":{"type":"string"},"view_count":{"type":"integer"},"favorite_count":{"type":"integer"},"created_at":{"type":"string"},"data_source":{"type":"array","items":{"type":"string","enum":["CD","CE","CET","CF","CHAOS","CI","DBOPS","HARNESS","IACM","IDP","SRM","SSCA","STO","UNIVERSAL"]}},"models":{"type":"array","items":{"type":"string","enum":["CD","CE","CET","CF","CG_CD","CHAOS","CI","CI_TI","DBOPS","IACM","IDP","SRM","SSCA","STO","UNIVERSAL"]}},"last_accessed_at":{"type":"string"},"resourceIdentifier":{"type":"string"},"folder":{"$ref":"#/components/schemas/DashboardFolder"}},"required":["created_at","data_source","description","favorite_count","folder","id","last_accessed_at","models","resourceIdentifier","title","type","view_count"]},"DashboardFolder":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"created_at":{"type":"string"},"parent_id":{"type":"string"}},"required":["created_at","id","parent_id","title"]},"ErrorResponse":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"integer"},"correlationId":{"type":"string"},"responseMessages":{"type":"string"}},"required":["code","error","responseMessages"]}}}}
```

## PATCH /

> Update a dashboards name, tags or folder.

```json
{"openapi":"3.0.2","info":{"title":"Dashboards Open API","version":"1.0.0"},"paths":{"/":{"patch":{"tags":["dashboards"],"description":"Update a dashboards name, tags or folder.","operationId":"update_dashboard","parameters":[{"in":"query","name":"accountId","schema":{"type":"string"},"required":false}],"requestBody":{"description":"Update dashboard fields.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDashboardRequest"}}}},"responses":{"200":{"description":"Returns the updated fields of the dashboard.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDashboardResponse"}}}}}}}},"components":{"schemas":{"CreateDashboardRequest":{"type":"object","properties":{"folderId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"dashboardId":{"type":"integer"}},"required":["folderId","name"]},"UpdateDashboardResponse":{"type":"object","properties":{"resource":{"$ref":"#/components/schemas/UpdateDashboardResponseResource"}},"required":["resource"]},"UpdateDashboardResponseResource":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"resourceIdentifier":{"type":"string"},"description":{"type":"string"}},"required":["description","id","resourceIdentifier","title"]}}}}
```

## DELETE /remove

> Delete a dashboard.

```json
{"openapi":"3.0.2","info":{"title":"Dashboards Open API","version":"1.0.0"},"paths":{"/remove":{"delete":{"tags":["dashboards"],"description":"Delete a dashboard.","operationId":"delete_dashboard","parameters":[{"in":"query","name":"accountId","schema":{"type":"string"},"required":false},{"in":"query","name":"folderId","schema":{"type":"string"},"required":true}],"requestBody":{"description":"Delete a Dashboard by ID.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteDashboardRequest"}}}},"responses":{"200":{"description":"Returns if Dashboard deletion was successful.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteDashboardResponse"}}}}}}}},"components":{"schemas":{"DeleteDashboardRequest":{"type":"object","properties":{"dashboardId":{"type":"string"}},"required":["dashboardId"]},"DeleteDashboardResponse":{"type":"object","properties":{"resource":{"$ref":"#/components/schemas/DeleteDashboardResponseResource"}},"required":["resource"]},"DeleteDashboardResponseResource":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}
```

## PATCH /dashboards/{dashboard\_id}/filters/{filter\_id}

> Update a specific filter within a dashboard by ID.

```json
{"openapi":"3.0.2","info":{"title":"Dashboards Open API","version":"1.0.0"},"paths":{"/dashboards/{dashboard_id}/filters/{filter_id}":{"patch":{"tags":["dashboards"],"description":"Update a specific filter within a dashboard by ID.","operationId":"update_dashboard_filter","parameters":[{"in":"path","name":"dashboard_id","schema":{"type":"string"},"required":true},{"in":"path","name":"filter_id","schema":{"type":"string"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDashboardFilterRequest"}}}},"responses":{"200":{"description":"Returns the updated dashboard filter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDashboardFilterResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"User does not have permission to update this dashboard.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Dashboard or dashboard filter not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"default":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"UpdateDashboardFilterRequest":{"type":"object","properties":{"default_value":{"type":"string"},"name":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"row":{"type":"integer","nullable":true},"ui_config":{"type":"object"}}},"GetDashboardFilterResponse":{"type":"object","properties":{"resource":{"$ref":"#/components/schemas/DashboardFilter"}},"required":["resource"]},"DashboardFilter":{"type":"object","properties":{"id":{"type":"string"},"dashboard_id":{"type":"string"},"default_value":{"type":"string"},"explore":{"type":"string"},"model":{"type":"string"},"name":{"type":"string","nullable":true},"row":{"type":"integer","nullable":true},"title":{"type":"string","nullable":true},"ui_config":{"type":"object"}},"required":["dashboard_id","default_value","explore","id","model","ui_config"]},"ErrorResponse":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"integer"},"correlationId":{"type":"string"},"responseMessages":{"type":"string"}},"required":["code","error","responseMessages"]}}}}
```

## Download a Dashboard CSV

> Download a Dashboard in CSV format.

```json
{"openapi":"3.0.2","info":{"title":"Dashboards Open API","version":"1.0.0"},"paths":{"/download/dashboards/{dashboard_id}/csv":{"get":{"tags":["dashboards"],"description":"Download a Dashboard in CSV format.","summary":"Download a Dashboard CSV","operationId":"get_dashboard_download_csv","parameters":[{"in":"path","name":"dashboard_id","schema":{"type":"string"},"required":true},{"in":"query","name":"accountId","schema":{"type":"string"},"required":false},{"in":"query","name":"filters","schema":{"type":"string"},"required":false},{"in":"query","name":"expanded_tables","schema":{"type":"boolean"},"required":false},{"in":"query","name":"apply_vis","schema":{"type":"boolean"},"required":false}],"responses":{"200":{"description":"Returns a zip of CSV files containing raw data of each tile within a Dashboard.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadCsvDashboardResponse"}}}},"400":{"description":"Download Task has failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Dashboard not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Querying Dashboard to build CSV has timed out.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"default":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"DownloadCsvDashboardResponse":{"type":"object","properties":{"file":{"type":"string","format":"byte"}}},"ErrorResponse":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"integer"},"correlationId":{"type":"string"},"responseMessages":{"type":"string"}},"required":["code","error","responseMessages"]}}}}
```

## Download a Dashboard PDF

> Download a Dashboard in PDF format.

```json
{"openapi":"3.0.2","info":{"title":"Dashboards Open API","version":"1.0.0"},"paths":{"/download/dashboards/{dashboard_id}/pdf":{"get":{"tags":["dashboards"],"description":"Download a Dashboard in PDF format.","summary":"Download a Dashboard PDF","operationId":"get_dashboard_download_pdf","parameters":[{"in":"path","name":"dashboard_id","schema":{"type":"string"},"required":true},{"in":"query","name":"accountId","schema":{"type":"string"},"required":false},{"in":"query","name":"filters","schema":{"type":"string"},"required":false},{"in":"query","name":"expanded_tables","schema":{"type":"boolean"},"required":false},{"in":"query","name":"landscape","schema":{"type":"boolean"},"required":false},{"in":"query","name":"paper_size","schema":{"type":"string","enum":["letter","legal","tabloid","a0","a1","a2","a3","a4","a5"]},"required":false},{"in":"query","name":"style","schema":{"type":"string","enum":["single_column","tiled"]},"required":false}],"responses":{"200":{"description":"Returns a PDF file containing the visualization of a Dashboard.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadPdfDashboardResponse"}}}},"400":{"description":"Render Task has failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Dashboard not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Render Task has timed out.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"default":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"DownloadPdfDashboardResponse":{"type":"object","properties":{"file":{"type":"string","format":"byte"}}},"ErrorResponse":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"integer"},"correlationId":{"type":"string"},"responseMessages":{"type":"string"}},"required":["code","error","responseMessages"]}}}}
```

## Runs a schedule delivery once that is then immediately sent via email to recipients

> Run a schedule delivery once

```json
{"openapi":"3.0.2","info":{"title":"Dashboards Open API","version":"1.0.0"},"paths":{"/schedules/run_once":{"post":{"tags":["dashboards"],"description":"Run a schedule delivery once","summary":"Runs a schedule delivery once that is then immediately sent via email to recipients","operationId":"schedules_run_once","parameters":[{"in":"query","name":"accountId","schema":{"type":"string"},"required":false}],"requestBody":{"description":"Run a Dashboard Schedule Delivery once","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleReportRequestBody"}}}},"responses":{"200":{"description":"A successful request does not necessarily mean successful delivery of emails","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleReportResponse"}}}},"400":{"description":"Please specify a valid File Type.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Dashboard not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"default":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"ScheduleReportRequestBody":{"type":"object","properties":{"dashboard_id":{"type":"string"},"destination_emails":{"type":"string"},"file_type":{"type":"string","enum":["csv_zip","assembled_pdf","wysiwyg_pdf","wysiwyg_png"]},"name":{"type":"string"},"message":{"type":"string"},"filters":{"type":"string"}},"required":["dashboard_id","destination_emails","file_type","name"]},"ScheduleReportResponse":{"type":"object","properties":{"resource":{"$ref":"#/components/schemas/ScheduleReportResponseBody"}},"required":["resource"]},"ScheduleReportResponseBody":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"]},"ErrorResponse":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"integer"},"correlationId":{"type":"string"},"responseMessages":{"type":"string"}},"required":["code","error","responseMessages"]}}}}
```
