Sanity · Arazzo Workflow
Sanity Publish Draft Document
Version 1.0.0
Read a draft, promote it to a published document, then verify the result.
View Spec
View on GitHub
Headless CMSContent ManagementGROQReal-TimeStructured ContentDeveloper PlatformArazzoWorkflows
Provider
Workflows
publish-draft-document
Promote a draft document to published and confirm it landed.
Fetches the draft by its drafts-prefixed id, runs a mutation batch that creates or replaces the published document and deletes the draft, and verifies the published document with a follow-up query.
1
readDraft
queryDocumentsPost
Read the draft document by its drafts-prefixed id to confirm a draft exists before promoting it.
2
promoteDraft
mutateDocuments
Create or replace the published document from the supplied body and delete the draft in a single mutation batch.
3
verifyPublished
queryDocumentsPost
Query the published id to confirm the document is now present in the published perspective.