API Stability Short-Term

The addOrUpdateQueryQuotaDefaultSettings() GraphQL mutation field is used to add or update default query quota settings.

For more information on query quotas, see the Query Quotas documentation page.

Syntax

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

graphql
addOrUpdateQueryQuotaDefaultSettings(
      input: QueryQuotaDefaultSettingsInput!
    ): QueryQuotaDefaultSettings!

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

Show:
graphql
mutation {
  addOrUpdateQueryQuotaDefaultSettings(input: 
    {settings: [{interval: PerDay, 
                 measurementKind: QueryCount,
                 valueKind: Limited, value: 1000}]} )
  {settings {
    __typename
  }}
}
Example Responses
Show:
json
{
  "data": {
    "addOrUpdateQueryQuotaDefaultSettings": {
      "settings": [
        {
          "__typename": "QueryQuotaIntervalSetting"
        }
      ]
    }
  }
}

Given Datatypes

For QueryQuotaDefaultSettingsInput, there is one parameter that may be given. It's described below:

Table: QueryQuotaDefaultSettingsInput

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 19, 2024
settingsQueryQuotaIntervalSettingInputyes Short-TermThe default query quota settings. See QueryQuotaIntervalSettingInput.

Returned Datatypes

QueryQuotaDefaultSettings has one parameter, and several sub-parameters:

Table: QueryQuotaDefaultSettings

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 2, 2024
settings[QueryQuotaIntervalSetting]yes Short-TermList of the default rules that apply to users. See QueryQuotaIntervalSetting.