Skip to main content
PUT
Set daily and monthly usage budgets

Authorizations

Authorization
string
header
required

Authorization header using the Bearer scheme. Accepted values are Leadping user JWT access tokens and WorkOS organization API keys beginning with sk_.

Body

The daily and monthly usage limits to apply.

Organization usage budgets in USD. Null removes a limit; zero stops new paid usage.

dailyLimit
null | number<double>

Daily usage budget in USD for the UTC calendar day. Null removes the limit; zero stops new paid usage.

monthlyLimit
null | number<double>

Monthly usage budget in USD for the UTC calendar month. Null removes the limit; zero stops new paid usage.

Response

Returns the updated usage limits and progress.

UTC calendar usage budgets, settled spend, and pending usage reservations in USD.

dailyLimit
null | number<double>

Daily usage budget in USD. Null means no daily limit; zero stops new paid usage.

monthlyLimit
null | number<double>

Monthly usage budget in USD. Null means no monthly limit; zero stops new paid usage.

dailySpent
number<double>

Settled usage spending in USD for the current UTC calendar day.

monthlySpent
number<double>

Settled usage spending in USD for the current UTC calendar month.

reserved
number<double>

Pending usage reservations in USD.

dailyResetsAt
string<date-time>

UTC timestamp when the next calendar day begins and daily spending resets.

monthlyResetsAt
string<date-time>

UTC timestamp when the next calendar month begins and monthly spending resets.