PATCH/admin/quota/rules/{quotarule}

Update a quota rule

Updates an existing quota rule with a new limit or set of affected subjects. Supply only the properties you want to change in the request body, using quotarule to identify the rule. The response includes the rule's name, limit, and subjects.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 2 body fields
quotarulestringrequired

The unique identifier of the quota rule to update.

Partial quota rule update containing the limit or subjects to change.

limitintegeroptional

The limit set by the rule

subjectsarray<string>optional

The subjects affected by the rule

5 status codes
200Returns the updated quota rule, including its administrator-only name, limit, and affected subjects.
limitintegeroptional

The limit set by the rule

namestringoptional

Name of the rule (only shown to admins)

subjectsarray<string>optional

Subjects the rule affects

400Returned when the request is malformed or cannot be parsed as a quota rule update.
messagestringoptional
urlstringoptional
403Returned when the authenticated user is not permitted to edit quota rules.
messagestringoptional
urlstringoptional
404Returned when no quota rule exists with the given quotarule.
errorsarray<string>optional
messagestringoptional
urlstringoptional
422Returned when a supplied quota rule value fails input validation.
messagestringoptional
urlstringoptional

Error handling

A 400 is returned when the request is malformed, a 403 when the authenticated user is not permitted to edit quota rules, a 404 when quotarule does not identify an existing rule, and a 422 when the supplied values fail validation. limit must be an integer when provided, and subjects must be an array of strings.