The updatedashboardtoken GraphQL mutation field may be used to update a dashboard token to run with a different ownership. It requires the OrganizationOwnedQueries permission to change the dashboard to run as an organization or to change a dashboard that already runs as an organization.

It's not possible to run the dashboard as another user than yourself.

For more information on access tokens of various types, see the Ingest Tokens documentation page. For information on dashboards, see the Dashboards & Widgets documentation page.

Syntax

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

updateDashboardToken(
   viewId: string!
   userId: string
   queryOwnershipType: string
   dashboardToken: string!
): View!

Returned Datatypes

The returned datatype View has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: View

ParameterTypeRequired[a]DefaultDescription
connections[ViewConnection]yes The connections for the view (see ViewConnection Table).
federated[FederatedQueryConnection]yes The connection between a view and a repository in a remote cluster. (see FederatedQueryConnection Table).
idstringyes The unique identifier of the view.
nameRepoOrViewNameyes This is a scalar.
descriptionstringyes A description of the view.
deletedDatelongyes The point in time the search domain was marked for deletion.
permanentlyDeletedAtstringyes The point in time the search domain will not be restorable anymore.
isStarredbooleanyes Whether the view should be marked with a star.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.