Skip to content

Create a new quota rule

POST
/admin/quota/rules

Definition of the quota rule

CreateQuotaRuleOptions represents the options for creating a quota rule

object
limit

The limit set by the rule

integer format: int64
name

Name of the rule to create

string
subjects

The subjects affected by the rule

Array<string>
Example generated
{
"limit": 1,
"name": "example",
"subjects": [
"example"
]
}

QuotaRuleInfo

Media type application/json

QuotaRuleInfo contains information about a quota rule

object
limit

The limit set by the rule

integer format: int64
name

Name of the rule (only shown to admins)

string
subjects

Subjects the rule affects

Array<string>
Example generated
{
"limit": 1,
"name": "example",
"subjects": [
"example"
]
}

APIError is error format response

Media type application/json

APIError is an api error with a message

object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

APIForbiddenError is a forbidden error response

Media type application/json
object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

APIError is error format response

Media type application/json

APIError is an api error with a message

object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

APIValidationError is error format response related to input validation

Media type application/json
object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}