## Update organization spend limit

`$ openai admin:organization:spend-limit update`

**post** `/organization/spend_limit`

Create or replace the organization's hard spend limit.

### Parameters

- `--currency: "USD"`

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

- `--interval: "month"`

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

- `--threshold-amount: number`

  The hard spend limit amount, in cents.

### Returns

- `organization_spend_limit: object { currency, enforcement, interval, 2 more }`

  Represents a hard spend limit configured at the organization level.

  - `currency: string or "USD"`

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

    - `"USD"`

  - `enforcement: object { status }`

    The current enforcement state of the hard spend limit.

    - `status: string or "inactive" or "enforcing"`

      Whether the hard spend limit is currently enforcing.

      - `"inactive"`

      - `"enforcing"`

  - `interval: string or "month"`

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

    - `"month"`

  - `object: "organization.spend_limit"`

    The object type, which is always `organization.spend_limit`.

  - `threshold_amount: number`

    The hard spend limit amount, in cents.

### Example

```cli
openai admin:organization:spend-limit update \
  --admin-api-key 'My Admin API Key' \
  --currency USD \
  --interval month \
  --threshold-amount 1
```

#### Response

```json
{
  "currency": "USD",
  "enforcement": {
    "status": "inactive"
  },
  "interval": "month",
  "object": "organization.spend_limit",
  "threshold_amount": 0
}
```
