Discard Draft

Discard Draft

Restores working draft fields from the current published snapshot (or clears draft when unpublished) and clears is_draft_dirty. Does not mint a version or change what is live.

Endpoint

[POST]

/{collection_slug}/{entry_uuid}/discard-draft

Permissions

Project token with the update ability.

Example

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

Search documentation

Find guides and reference pages