# Move To Team

> This endpoint moves database under a target team

## Endpoint

`POST https://api.upstash.com/v2/redis/move-to-team`

## Request body

- `team_id` (string, required): The ID of the target team
- `database_id` (string, required): The ID of the database to be moved

## Responses

### 200 - Database moved successfully


## cURL

```bash
curl --request POST \
  --url https://api.upstash.com/v2/redis/move-to-team \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "team_id": "<team_id>",
    "database_id": "<database_id>"
  }'
```
