---
title: "Unpublish a document"
method: DELETE
path: "/documents/{id}/publish"
---

# Unpublish a document

`DELETE /documents/{id}/publish`

## Request

- Base URL: `https://api.unmarkdown.com/v1`
- URL: `https://api.unmarkdown.com/v1/documents/{id}/publish`
- Auth: HTTP bearer

Removes a document from public access. The document itself is not deleted and can be re-published later.

## Path parameters

- `id` string, uuid, required

## Response `200`

Document unpublished

- object
  - `id` string, uuid
  - `is_published` boolean

## Other responses

- `401`: Authentication required
- `404`: Resource not found
- `500`: Internal server error

---

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