Unpublish an Entry

Unpublish an Entry

Clears the live published pointer. The entry is no longer returned for state=published reads. Historical versions are retained.

Endpoint

[POST]

/{collection_slug}/{entry_uuid}/unpublish

Permissions

Project token with the update ability.

Example

await client.content.unpublish('blog-posts', 'a1b2c3d4-e5f6-7890-1234-567890abcdef')
curl -X POST "https://your-domain.com/api/blog-posts/a1b2c3d4-e5f6-7890-1234-567890abcdef/unpublish" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_PROJECT_TOKEN" \
  -H "project-id: YOUR_PROJECT_UUID"

See Publish and Versions.

Search documentation

Find guides and reference pages