> ## 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.

# Move To Team

> This endpoint moves database under a target team

## URL Parameters

<ParamField body="team_id" type="string" required>
  The ID of the target team
</ParamField>

<ParamField body="database_id" type="string" required>
  The ID of the database to be moved
</ParamField>

<RequestExample>
  ```shell curl
  curl -X POST \
    https://api.upstash.com/v2/redis/move-to-team \
    -u 'EMAIL:API_KEY' \
    -d '{"team_id": "6cc32556-0718-4de5-b69c-b927693f9282","database_id": "67b6af16-acb2-4f00-9e38-f6cb9bee800d"}'
  ```

  ```python Python
  import requests

  data = '{"team_id": "6cc32556-0718-4de5-b69c-b927693f9282","database_id": "67b6af16-acb2-4f00-9e38-f6cb9bee800d"}'

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

  ```go Go
  client := &http.Client{}
  var data = strings.NewReader(`{
      "team_id": "6cc32556-0718-4de5-b69c-b927693f9282",
      "database_id": "67b6af16-acb2-4f00-9e38-f6cb9bee800d"
  }`)
  req, err := http.NewRequest("POST", "https://api.upstash.com/v2/redis/move-to-team", 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>
