v7

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-07-07355390.1 KB
rule

Upsert a batch of rules.

Each entry carries an optional [Precondition]. Setting it to DoesNotExist makes the entry a strict insert; Matches(v) rejects the batch unless the rule's current version is v; omitting it (None) is unconditional. The whole batch is atomic: any failed precondition or cap-exceeded condition rolls back the rest.

put/limits/rules

Request body

descriptionstring nullable

Free-form description shown in the rule book; not consulted at runtime.

disabledboolean

Soft-tombstone toggle. true parks the rule (the runtime treats it as absent) without removing it.

patternstring required

The pattern that selects which scope/limit-key combinations the rule applies to. Examples: "*", "scope1/*", "scope1/foo/bar".

Response

Rules upserted

descriptionstring nullable
disabledboolean required
last_modified_millis_since_epochinteger required

Millis since UNIX epoch.

patternstring required
versioninteger required

Per-rule version: bumped on runtime-relevant changes.