Skip to main content
These require your secret key. Call them from your own back office, never from a request an end user controls. An override changes a limit for as long as it lasts; a usage correction changes a counter once.

Overrides

An override replaces one customer’s limit for a feature. It renews every period like the plan’s limit, until it expires.
grant() creates the override, or updates the customer’s existing one for that feature, and creates the customer if it doesn’t exist yet. It changes the limit only: what happens past the limit still comes from the plan. Expired overrides stay in listGrants() with is_expired: true. grant() needs exceptions on your Kerne plan, or it fails with K5002. On a quota counted per dimension, dimension changes a single counter:
The most specific override wins: the counter’s own, then the customer’s, then the plan. “Every machine at 3 hours, this one at 5” is two grants. A dimension only takes effect when the plan counts that feature per dimension.

Usage corrections

Prefer adjustUsage(): it never reads the counter first. Values are whole numbers.