> ## Documentation Index
> Fetch the complete documentation index at: https://upstash-bulkdlqdelete.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Regions (Global)

> Update the regions of global database

## Request

<ParamField path="id" type="string" required>
  The ID of your database
</ParamField>

<ParamField body="read_regions" type="Array<string>" required>
  Array of read regions of the database

  **Options:** `us-east-1`, `us-west-1`, `us-west-2`, `eu-west-1`, `eu-central-1`,
  `ap-southeast-1`, `ap-southeast-2`, `sa-east-1`
</ParamField>

<RequestExample>
  ```shell curl
  curl -X POST \
    https://api.upstash.com/v2/redis/update-regions/:id \
    -u 'EMAIL:API_KEY' \
    -d '{ "read_regions":["us-west-1"] }'
  ```

  ```python Python
  import requests

  data = '{"read_regions":["eu-west-1"]}'

  response = requests.post('https://api.upstash.com/v2/redis/database', data=data, auth=('EMAIL', 'API_KEY'))
  response.content
  ```

  ```go Go
  client := &http.Client{}
  var data = strings.NewReader(`{,
      "read_regions":["us-west-1"]
  }`)
  req, err := http.NewRequest("POST", "https://api.upstash.com/v2/redis/read-regions/:id", data)
  if err != nil {
      log.Fatal(err)
  }
  req.SetBasicAuth("email", "api_key")
  resp, err := client.Do(req)
  if err != nil {
      log.Fatal(err)
  }
  bodyText, err := ioutil.ReadAll(resp.Body)
  if err != nil {
      log.Fatal(err)
  }
  fmt.Printf("%s\n", bodyText);
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK
  "OK"
  ```
</ResponseExample>
