Set spending limits
Replaces the limits an organisation sets on its own spending: a cap for the month and the amounts it wants to be told about. Send every limit you want to keep, since what you leave out is cleared.
/_luna/orgs/{org}/billing/limitsAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
billing:writeorgstringrequiredThe organisation, by its slug.
application/jsonhardCapUsdnumber<double> | nullThe most the organisation spends in a calendar month, in US dollars. Its work pauses when the month reaches it. No cap when left out.
alertsUsdnumber<double>[]Amounts in US dollars. The organisation is told when the month's spending passes each one. At most 20.
The limits as they were saved.
limitsLimitsrequiredThe limits an organisation sets on its own spending.
Show propertiesHide properties
hardCapUsdnumber<double> | nullThe most the organisation spends in a calendar month, in US dollars. Its work pauses when the month reaches it. No cap when left out.
alertsUsdnumber<double>[]Amounts in US dollars. The organisation is told when the month's spending passes each one. At most 20.
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.