# Update Database Budget

> This endpoint updates the monthly budget of a Redis database.

## Endpoint

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

## Parameters

- `id` (path, string, required): The ID of the database whose budget will be updated

## Request body

- `budget` (integer, required): The new monthly budget for the database

## Responses

### 200 - Budget updated successfully


## cURL

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