Redis

Update Regions

Update the regions of a database

POST/v2/redis/update-regions/{id}
cURL
curl --request POST \
  --url https://api.upstash.com/v2/redis/update-regions/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "read_regions": [
      "us-west-1",
      "us-west-2"
    ]
  }'
200Response
"OK"

Authorization

Authorizationheaderstringrequired

Bearer authentication header of the form Bearer <token>.

Path parameters

idpathstringrequired

The ID of your database

Body

read_regionsenum<string>[]required

Array of Read Regions of the Database

Available options:us-east-1us-east-2us-west-1us-west-2ca-central-1eu-central-1eu-west-1eu-west-2sa-east-1ap-south-1ap-northeast-1ap-southeast-1ap-southeast-2

Response

200 — Regions updated successfully

Loading search…