Skip to main content

Use case: Copy a Dashboard

This use case demonstrates how to duplicate an existing dashboard by retrieving its configuration and posting it as a new dashboard.

Steps

1. (Optional) List available dashboards If you don’t already have the dashboard_id of the source dashboard, use this endpoint to list existing dashboards. GET /dashboards/catalog

Sample response

!!! Note Note the ID of the dashboard you want to copy. 2. Retrieve the dashboard by ID GET /dashboards/{dashboard_id} Use the ID from the previous step to fetch the full dashboard definition.

Example

GET /dashboards/qw5k07W8SYBxp6h1m1EN9 3. Copy the dashboard Take the response from the previous step and remove the following fields:
  • id
  • createTime- updateTime
Update any fields if needed, then send the remaining data as the body to create a new dashboard. POST /dashboards

Sample request body

Summary