---
title: "Transfer site to another team REST API | HitKeep"
description: "Reference for the HitKeep REST API operation Transfer site to another team, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apisitesidtransfer-team/"
---

# Transfer site to another team REST API

POST

/api/sites/{id}/transfer-team

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/transfer-team';
const options = {
  method: 'POST',
  headers: {cookie: 'hk_token=<hk_token>', 'Content-Type': 'application/json'},
  body: '{"team_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```
curl --request POST \
  --url http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/transfer-team \
  --header 'Content-Type: application/json' \
  --cookie hk_token=<hk_token> \
  --data '{ "team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'
```

-

Moves a site into another team the caller can administer and migrates analytics data to the destination tenant store.

## Authorizations

- **[cookieAuth](https://hitkeep.com/api/#cookieauth)**

## Parameters

### Path Parameters

**id**

required

string format: uuid

## Request Bodyrequired

application/json

object

**team_id**

required

string format: uuid

##### Examplegenerated

```
{
  "team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
```

## Responses

### 200

Site transferred

application/json

object

**destination_team_id**

string format: uuid

**site_id**

string format: uuid

**source_team_id**

string format: uuid

**status**

string

##### Examplegenerated

```
{
  "destination_team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
  "site_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
  "source_team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
  "status": "example"
}
```

### 403

Access denied

application/json

object

**message**

string

##### Examplegenerated

```
{
  "message": "example"
}
```

[Previous Get tracking status](https://hitkeep.com/api/operations/apisitesidtrackingstatus/)[Next Get Web Vitals visitor context breakdown](https://hitkeep.com/api/operations/apisitesidweb-vitalsbreakdown/)
