Redis

Update Database Budget

This endpoint updates the monthly budget of a Redis database.

PATCH/v2/redis/update-budget/{id}
cURL
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
  }'
200Response
"OK"

Authorization

Authorizationheaderstringrequired

Bearer authentication header of the form Bearer <token>.

Path parameters

idpathstringrequired

The ID of the database whose budget will be updated

Body

budgetintegerrequired

The new monthly budget for the database

Response

200 — Budget updated successfully

Loading search…