V3 Dashboards

Duplicate a dashboard

Changed on

Copies a dashboard, in one transaction, with its layout. The copy shares the original's charts: its widgets point at the same charts, so editing one of them changes both dashboards. To change a chart on the copy only, duplicate the chart and repoint the copy's widget. Needs write access to the dashboard's workspace. A name already used in the workspace answers 409.

post/api/v3/dashboards/{dashboardId}/duplicate

Request

  • Base URL
    https://app.formbricks.com
  • URL
    https://app.formbricks.com/api/v3/dashboards/{dashboardId}/duplicate
  • Auth
    • API key in cookie next-auth.session-token
    • or API key in header x-api-key
    • or HTTP bearer

Path parameters

dashboardIdstring cuid2 required

Dashboard identifier.

Request body

namestring

Name for the copy, unique within the workspace. Without one the copy is named "<original> (copy)", then "(copy 2)" and so on — never "(copy) (copy)".

Response

The copy

Example response

{
  "data": {
    "widgets": [
      {
        "chart": {
          "query": {
            "measures": [
              "FeedbackRecords.npsScore"
            ],
            "dimensions": [
              "FeedbackRecords.sourceName"
            ],
            "timeDimensions": [
              {
                "dimension": "FeedbackRecords.collectedAt",
                "dateRange": "last 30 days"
              }
            ],
            "filters": [
              {
                "member": "FeedbackRecords.sourceType"
              }
            ]
          }
        }
      }
    ]
  }
}

Changes