Api Limit Policies Create 2
POST handler with superadmin-only field protection.
Strips superadmin-only fields from non-superadmin requests before delegating to OrganizationInjectionMixin.post() for org injection.
Authentication
AuthorizationBearer
JWT access token or Respan API key
Path parameters
id
Response
id
name
scope
scope_value
compose
metric
cost- Costrequest_count- Request counttoken_count- Token count
algorithm
balance_fixed_window- Balance fixed windowtoken_bucket- Token bucket
period
effective_at
expires_at
priority
is_active
threshold_value
meter_definition_id
updated_by
created_at
updated_at
current_state
Live counter state for the policy’s current window. Sourced from Redis (same key apply_limits evaluates against). Populated by the view’s bulk prefetch on list responses; falls back to a single HGET on detail.
rules
anchor
calendar- Calendarfirst_event- First eventexplicit_ts- Explicit timestamp
anchor_at
refill_rate