API Stability Long-Term

The updateDefaultQueryPrefix() GraphQL mutation is used to update the default query prefix for a group in LogScale.

There is some mention of query prefixes on the Query Monitor documentation page that you may find helpful.

Syntax

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

graphql
updateDefaultQueryPrefix(
      input: UpdateDefaultQueryPrefixInput!
   ): UpdateDefaultQueryPrefixMutation!

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

Show:
graphql
mutation {
  updateDefaultQueryPrefix( input: 
    {
      queryPrefix: "sales",
      groupId: "sQjSEU6MDp6W9HrwAejmL9yHJlk6Q1sp"
    }
  )
  { group { displayName } }
}
Example Responses
Show:
json
{
  "data": {
    "updateDefaultQueryPrefix": {
      "group": {
        "displayName": "sales"
      }
    }
  }
}

Given Datatypes

For the given datatype, UpdateDefaultQueryPrefixInput, there are a couple of parameters. Below is a list of them along with a description of each:

Table: UpdateDefaultQueryPrefixInput

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 23, 2024
groupIdstringyes Long-TermThe unique identifier of the group.
queryPrefixstring  Long-TermThe prefix of the default query.

Returned Datatypes

The returned datatype UpdateDefaultQueryPrefixMutation has one parameter, but several sub-parameters. Click on the link below for the one parameter to see a table with the sub-parameters:

Table: UpdateDefaultQueryPrefixMutation

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: Oct 4, 2024
groupgroupyes Long-TermThe group for which to update the default query prefix. See group.