The copyDashboard() GraphQL mutation may be used to create a clone of a dashboard.

For information on creating dashboards, see the Create Dashboards and Widgets documentation page. You may also want to look at the Dashboards & Widgets and Dashboards pages for related information.

Syntax

Below is the syntax for the copyDashboard() mutation field:

graphql
copyDashboard(
      id: string!
      targetSearchDomainName: string
      sourceSearchDomainName: string!
      name: string!
   ): CopyDashboardMutation!

The targetSearchDomainName is given a string value with the name of the repository or view to which the dashboard to be copied. For the sourceSearchDomainName, provide the name of the repository or view to which the dashboard is to be copied. This is required. The name is the name the copied dashboard should have.

Returned Datatypes

The returned datatype CopyDashboardMutation has its own parameter:

Table: CopyDashboardMutation

ParameterTypeRequiredDefaultDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 24, 2024
dashboardDashboardyes The dashboard to copy. See Dashboard.