Reset a rule budget
Reset the consumed amount for a specific budget on a rule, identified by asset_id.
Resets a rule’s budget for a specific asset. Pass the targetDocumentation Index
Fetch the complete documentation index at: https://docs.scrip.dev/llms.txt
Use this file to discover all available pages before exploring further.
asset_id as a query parameter. The consumed amount is set back to zero and the next_reset_at timestamp advances to the next scheduled reset period.
For lifetime budgets (those without a schedule_type), the consumed amount resets but no future next_reset_at is scheduled. This is useful when you need to manually refill a budget mid-cycle or correct a budget that was consumed by erroneous events.
Authorizations
API key passed in the X-API-Key header.
Path Parameters
Rule ID
Query Parameters
Asset ID to reset budget for
Response
Budget reset
Asset this budget constrains
"550e8400-e29b-41d4-a716-446655440000"
Amount consumed so far in the current period
"4500.00"
Cron expression for CRON-based resets (e.g., first of every month)
"0 0 1 * *"
Duration for INTERVAL-based resets
"720h"
Maximum allowed spend for this budget period
"10000.00"
When the budget next resets (null for lifetime budgets)
"2026-03-01T00:00:00Z"
Reset schedule type: CRON or INTERVAL (null for lifetime budgets)
"CRON"