---
title: "Unpublish an article (revert to draft)"
method: PATCH
path: "/api/agent/articles/{id}"
tags: ["Articles"]
---

# Unpublish an article (revert to draft)

`PATCH /api/agent/articles/{id}`

Set article status back to 'generated'. The article remains in the system but is removed from the public blog. Only articles with status 'published' can be unpublished; attempting to unpublish an article in any other status returns 400.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `action` 'unpublish', required

## Response `200`

Article unpublished successfully

- object
  - `article_id` string, uuid
  - `status` 'generated'
  - `message` string

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `409` — Article is not in the required state for this operation
- `500` — Internal server error

## Changes

- **2026-03-08** `7ee91cd6fa9d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/citedy/apis/citedy-agent-api/changes/api/agent/articles/:id/patch.md)

---

[API](https://skmtc.dev/citedy/apis/citedy-agent-api.md) · [All operations](https://skmtc.dev/citedy/apis/citedy-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/citedy/citedy-agent-api/revisions/b5785d3fe446/schema)
