---
title: "Publish or unpublish"
method: POST
path: "/books/{bookId}/publish"
---

# Publish or unpublish

`POST /books/{bookId}/publish`

## Request

- Base URL: `https://anthra.com/api/v1`
- URL: `https://anthra.com/api/v1/books/{bookId}/publish`
- Auth: HTTP bearer

## Request body

- object
  - `publish` boolean, required
  - `visibility` 'private' | 'unlisted' | 'public'

## Response `200`

OK

---

[API](https://skmtc.dev/anthra/apis/anthra-api.md) · [All operations](https://skmtc.dev/anthra/apis/anthra-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anthra/apis/anthra-api/revisions/d21f87c435bf?raw)
