API Stability Long-Term

The createDashboardFromPackageTemplate() GraphQL mutation field may be used to create a dashboard in LogScale from a package dashboard template.

For more information on creating dashboards, see the Create Dashboards and Widgets documentation page. You may also want to look at the Packages page.

Packages

Syntax

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

graphql
createDashboardFromPackageTemplate(
      viewName: string!
      packageId: VersionedPackageSpecifier!
      dashboardTemplateName: string!
      overrideName: string
   ): CreateDashboardFromPackageTemplateMutation!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  createDashboardFromPackageTemplate(
        viewName: "humio", packageId: "humio/insights@0.0.14",
        dashboardTemplateName: "Hosts",
        overrideName: "Visitors"
        )
  { dashboard {id}}
}
Example Responses
Show:
json
{
  "data": {
    "createDashboardFromPackageTemplate": {
      "dashboard": {
        "id": "zIcLigwHclBRJKfGn8PXxH1Pw6mJZtoY"
      }
    }
  }
}

Given and Returned Datatypes

The given datatype VersionedPackageSpecifier is a scalar value. For it, you would put the package name, followed by an ampersand and then the version number. The returned datatype CreateDashboardFromPackageTemplateMutation has only one parameter, but the datatype for it includes many sub-parameters. Click on it to see them.

Table: CreateDashboardFromPackageTemplateMutation

ParameterTypeRequiredDefaultStabilityDescription
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: Mar 25, 2025
dashboardDashboardyes Long-TermThe dashboard to create from the package template. See Dashboard.