API Stability Deprecated

The addLimit() GraphQL mutation is used to add a limit to a given organization. This mutation field has been deprecated and will be removed at the earliest in version 1.201. Use instead addLimitV2().

For more information on query quotas, see the Query Quotas documentation page. You may also want to look at Limits & Standards for related information.

Syntax

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

graphql
addLimit(
      input: AddLimitInput!
    ): boolean!

In the syntax above, you would replace AddLimitInput with arguments required or allowed by that input definition (see the AddLimitInput table below). A boolean value is always returned that your API client may capture and use.

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

Show:
graphql
mutation {
  addLimit(input: 
       {limitName: "limiter2", 
        allowLogin: true, allowSelfService: true,
        dailyIngest: 10000, retention: 30} )
}
Example Responses
Show:
json
{
  "data": {
    "addLimit": true
  }
}

Given Datatypes

For AddLimitInput, there are several parameters that may be given. Below is a list of them along with their data type and a description of each:

Table: AddLimitInput

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
allowLoginbooleanyes DeprecatedWhether the limit allows logging in.
allowSelfServicebooleanyes DeprecatedWhether the limit allows self-service.
contractVersionOrganizations__ContractVersion  DeprecatedThe version of the contract, using the enumerate list of Organizations__ContractVersion: Unknown, Version1, or Version2.
dailyIngestlongyes DeprecatedThe daily ingest allowed for the limit.
expirationlong  DeprecatedThe expiration date for the limit.
limitNamestringyes DeprecatedThe name of the limit to add.
retentionintegeryes DeprecatedThe retention in days allowed for the limit.
userLimitinteger  DeprecatedThe limit for users.

One of these parameters uses Organizations__ContractVersion. This is just an enumerated list of choices: Unknown; Version1; or Version2.