Update organization spend limit

Changed on

Create or replace the organization's hard spend limit.

post/organization/spend_limit

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/organization/spend_limit
  • Auth
    HTTP bearer

Request body

threshold_amountinteger required

The hard spend limit amount, in cents.

currency'USD' required

The currency for the threshold amount. Currently, only USD is supported.

interval'month' required

The time interval for evaluating spend against the threshold. Currently, only month is supported.

Response

Hard spend limit created or replaced successfully.

object'organization.spend_limit' required

The object type, which is always organization.spend_limit.

threshold_amountinteger required

The hard spend limit amount, in cents.

Changes

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status