---
search:
  tags:
    - Billing
    - PUT
seo:
  description: >-
    Replaces the limits an organisation sets on its own spending: a cap for the…
    Reference for the PUT /_luna/orgs/{org}/billing/limits endpoint in the Luna
    API.
sidebar:
  label: Set spending limits
  badge: PUT
title: Set spending limits
type: openapi-operation
---
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.

`PUT /_luna/orgs/{org}/billing/limits`

**Request body** (`application/json`, required)

- `hardCapUsd` (number<double> | null) — The most the organisation spends in a calendar month, in US dollars. Its work pauses when the month reaches it. No cap when left out.
- `alertsUsd` (number<double>[]) — Amounts in US dollars. The organisation is told when the month's spending passes each one. At most 20.

Request body example:

```json
{
  "hardCapUsd": null,
  "alertsUsd": []
}
```

**Responses**

- `200` — The limits as they were saved.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "limits": {
    "hardCapUsd": null,
    "alertsUsd": []
  }
}
```
