---
title: "Set the sites a collection shows on"
url: https://docs.gleap.ai/en/reference/rest-api/set-helpcenter-collection-sites
method: PUT
path: "/helpcenter/collections/{helpcenterCollectionId}/sites"
api: "API Reference"
tag: "Help center collections"
operationId: "SetHelpcenterCollectionSites"
updatedAt: "2026-11-03T12:10:00.703Z"
language: en
---

# Set the sites a collection shows on

`PUT https://api.gleap.io/v3/helpcenter/collections/{helpcenterCollectionId}/sites`

Put a top-level collection (with its sub-collections and articles) on each of the listed help center sites (`default` for the default site) and take it off the others. Its home site, the first, keeps the canonical links. Returns the sites in stored order.

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Path parameters

- `helpcenterCollectionId` (string, required)

## Request body (`application/json`, required)

- `sites` (string[], required): The help center sites the top-level collection shows on (site ids, `default` for the default site); at least one.

## Example request

```bash
curl --request PUT \
  --url 'https://api.gleap.io/v3/helpcenter/collections/{helpcenterCollectionId}/sites' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sites": [
    "<sites>"
  ]
}'
```

## Responses

### 200 (`application/json`)

Ok

- `sites` (string[], required)
- `success` (boolean, required)
- `articles` (number<double>, required)
- `collections` (number<double>, required)

```json
{
  "sites": [
    "string"
  ],
  "success": true,
  "articles": 0,
  "collections": 0
}
```
