Swarmz

Entitlements

The per-tenant budget caps you set with create and plan. A JSONB object of known knobs — invalid keys and values are dropped silently, never rejected.

Entitlements are the per-tenant limits you set with create and patch with plan. They are stored as a JSONB object and act as budget caps — they bound what a tenant may consume but never fund it. The bill always meters to your platform account (see Data model).

Sanitization

The object is sanitized before it is stored, and the rules are forgiving by design so that one bad value never fails an otherwise-valid call:

  • Unknown keys are dropped silently. Only the knobs below are recognized.
  • For numeric keys, null passes and means unlimited.
  • Finite values ≥ 0 pass. Anything else — negatives, NaN, infinity, non-numbers — is dropped silently.

A dropped value is simply absent from the stored object; it is never an error. Because of this, plan requires the object to be non-empty after sanitization.

For the count-style limits (max_projects, max_published_projects, max_custom_domains), 0 or null means unlimited — they are budget ceilings, not gates. To disable a feature entirely, use the dedicated boolean knob (e.g. custom_domains_enabled: false) rather than a count of 0.

Knobs

Prop

Type

Caps replace within the keys you send

plan overwrites entitlements within the keys present in your request. Send the full object you want each time rather than a single field, or you may leave a stale cap in place.

On this page