Api Limit Policies Update 2
PUT handler with superadmin lock and field protection.
Same as patch() - checks lock and field protection before delegating.
Authentication
AuthorizationBearer
JWT access token or Respan API key
Path parameters
id
Request
This endpoint expects an object.
name
scope
rules
priority
is_active
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