batchUpdateQueryOwnership()

API Stability Long-Term

The batchUpdateQueryOwnership() GraphQL mutation is used to batch update query ownership to run queries on behalf of the organization for triggers and shared dashboards.

Syntax

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

graphql
batchUpdateQueryOwnership(
       input: BatchUpdateQueryOwnershipInput!
    ): boolean!

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

Show:
graphql
mutation {
	batchUpdateQueryOwnership( input:
	  { targetType: View,
        ids: [ "abc123" ] }
    )
}
Example Responses
Show:
json
{
  "data": {
    "batchUpdateQueryOwnership": true
  }
}

Given Datatypes

For BatchUpdateQueryOwnershipInput, there are a couple of parameters that may be given. Below is a list of them along with a description of each:

Table: BatchUpdateQueryOwnershipInput

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: Sep 17, 2024
ids[string]yes Long-TermThe set of unique identifiers to update.
targetTypeQueryOwnership_SelectionTargetTypeyes Long-TermThe type to update. See QueryOwnership_SelectionTargetType.