---
title: "Archive team (admin) REST API | HitKeep"
description: "Reference for the HitKeep REST API operation Archive team (admin), including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apiadminteamsidarchive/"
---

# Archive team (admin) REST API

POST

/api/admin/teams/{id}/archive

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/admin/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/archive';
const options = {method: 'POST', headers: {cookie: 'hk_token=<hk_token>'}};

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/admin/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/archive \
  --cookie hk_token=<hk_token>
```

-

Archives a non-default team from the instance admin surface after its sites have been moved or deleted.

## Authorizations

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

## Parameters

### Path Parameters

**id**

required

string format: uuid

## Responses

### 200

Status

application/json

object

**message**

string

**status**

string

##### Examplegenerated

```
{
  "message": "example",
  "status": "example"
}
```

### 400

The default team cannot be archived, or the team is not found or already archived

application/json

object

**message**

string

##### Examplegenerated

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

[Previous Delete archived team](https://hitkeep.com/api/operations/apiadminteamsid/)[Next List users](https://hitkeep.com/api/operations/apiadminusers/)
