# Update QStash Budget

> Updates the monthly spending budget limit for a QStash instance.

## Endpoint

`PATCH https://api.upstash.com/v2/qstash/update-budget/{id}`

## Parameters

- `id` (path, string, required): QStash user ID

## Request body

- `budget` (integer, required): Monthly spending budget limit in dollars. Minimum 20, maximum 10000, or 0 for no limit.

## Responses

### 200 - Budget updated successfully


## cURL

```bash
curl --request PATCH \
  --url https://api.upstash.com/v2/qstash/update-budget/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "budget": 100
  }'
```
