Skip to main content

Unpublish Page

POST/api/v1/dashboard/content/pages/{page_id}/unpublish

Overview

Reverts a published page back to draft status. The page will no longer be visible via the public content API. The published_at timestamp is cleared.

Authentication

info

Bearer authentication required - Pass your credentials as Authorization: Bearer <client_id>:<api_key>:<api_secret>.

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer <client_id>:<api_key>:<api_secret>

Path Parameters

ParameterTypeRequiredDescription
page_idstring (UUID)YesThe unique identifier of the page to unpublish

Request Body

No request body is required.

Response

Returns the full page object with status set to draft.

Example Request

curl -X POST "https://spideriq.ai/api/v1/dashboard/content/pages/e5f6a7b8-c9d0-1234-efab-567890123456/unpublish" \
-H "Authorization: Bearer $CLIENT_TOKEN"

Example Response

{
"id": "e5f6a7b8-c9d0-1234-efab-567890123456",
"slug": "about",
"title": "About Us",
"status": "draft",
"published_at": null,
"updated_at": "2026-04-08T13:00:00Z"
}

Status Codes

Status CodeMeaningDescription
200OKPage unpublished successfully
401UnauthorizedInvalid or missing Bearer token
404Not FoundPage not found or belongs to another client