# Migrate self hosted tenant into the gauzy cloud tenant

`POST /api/cloud/migrate/tenant/{token}`

Authentication: no security requirement declared for this operation.

Parameters:

- `token` (path, string, required)
  Type: string

Responses:

- 201: The tenant has been successfully created in the Gauzy cloud.

- 400: Invalid input, The response body may contain clues as to what went wrong

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/cloud/migrate/tenant/string'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/cloud/migrate/tenant/string', {
  method: 'POST',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.post('http://localhost:3000/api/cloud/migrate/tenant/string')
print(response.text)
```
