---
title: "Publish or unpublish a collection's articles"
method: PUT
path: "/helpcenter/collections/{helpcenterCollectionId}/toggle-publish"
tags: ["Help center collections"]
---

# Publish or unpublish a collection's articles

`PUT /helpcenter/collections/{helpcenterCollectionId}/toggle-publish`

Publish or unpublish every article in a help center collection. Set `unpublished` to `true` to
unpublish or `false` to publish; the change is applied recursively to all articles in this collection
and in all of its subcollections. The collection document itself is not modified. Returns
`{ success: true }`.

## Path parameters

- `helpcenterCollectionId` string, required

## Headers

- `project` string, required

## Request body

- object
  - `unpublished` boolean, required

## Response `200`

Ok

- object
  - `success` boolean, required

---

[API](https://skmtc.net/gleap/apis/gleap-server.md) · [All operations](https://skmtc.net/gleap/apis/gleap-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gleap/gleap-server/versions/b706fc73777f/schema)
