Popular

↑↓ move ↵ open All results →

Integration API · Content

Unpublish a page

POSThttps://{store}/api/v1/integrations/content/pages/{external_id}/unpublish

Takes a page or post off the storefront; it stays as a draft.

Integration key with the content:write ability: Authorization: Bearer {key}.
Idempotent. Needs an Idempotency-Key header: repeating the key returns the first response.

Path parameters

external_idstringrequired
Your page id.

Responses

200The page, now a draft.
{
    "data": {
        "id": 58,
        "type": "blog",
        "title": "Як обрати навушники",
        "slug": "yak-obraty-navushnyky",
        "published_at": null,
        "updated_at": "2026-10-12 08:55:00"
    }
}
404No page with this external id for this key.
{
    "code": "not_found",
    "message": "not_found",
    "field": null
}
401Missing, unknown or revoked key.
{
    "code": "unauthenticated",
    "message": "Integration key is inactive.",
    "field": null
}
403The key lacks content:write, or the store’s plan has no API access.
{
    "code": "forbidden",
    "message": "Integration key cannot content:write.",
    "field": null
}
422A field is invalid; field names it.
{
    "code": "validation_error",
    "message": "name is required.",
    "field": "name"
}
429More than 60 requests a minute for this key. Wait Retry-After seconds.
{
    "code": "rate_limited",
    "message": "Too many integration requests.",
    "field": null
}