Skip to content

Change an existing quota rule

PATCH
/admin/quota/rules/{quotarule}
quotarule
required
string

Quota rule to change

EditQuotaRuleOptions represents the options for editing a quota rule

object
limit

The limit set by the rule

integer format: int64
subjects

The subjects affected by the rule

Array<string>
Example generated
{
"limit": 1,
"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"
}

APINotFound is a not found error response

Media type application/json
object
errors
Array<string>
message
string
url
string
Example generated
{
"errors": [
"example"
],
"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"
}