Sample - OpenAI API
POST/organization/spend_limit

Update organization spend limit

Create or replace the organization's hard spend limit.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 body fields

Parameters for the hard spend limit you want to create or replace.

threshold_amountintegerrequired
The hard spend limit amount, in cents.
currencystringrequired
The currency for the threshold amount. Currently, only `USD` is supported.
Allowed:USD
intervalstringrequired
The time interval for evaluating spend against the threshold. Currently, only `month` is supported.
Allowed:month

1 status code
200Hard spend limit created or replaced successfully.
objectstringrequired
The object type, which is always `organization.spend_limit`.
Allowed:organization.spend_limitDefault:organization.spend_limit
threshold_amountintegerrequired
The hard spend limit amount, in cents.
currencystringrequired
The currency for the threshold amount. Currently, only `USD` is supported.
intervalstringrequired
The time interval for evaluating spend against the threshold. Currently, only `month` is supported.
enforcementobjectrequired
The current enforcement state of the hard spend limit.