WordPress · Arazzo Workflow
WordPress Draft Then Publish Post
Version 1.0.0
Create a draft post, revise it, then flip it to published.
Provider
Workflows
draft-then-publish-post
Create a draft post, update it, and publish it.
Creates a post with status draft, patches it with finalized title and content while setting status to publish, then fetches it by id to verify the published state.
1
createDraft
createPost
Create the post in draft status so it is saved but not yet visible to the public. WordPress returns 201 with the new post id.
2
updateAndPublish
updatePost
Patch the draft with the finalized title and content and flip its status to publish in a single update.
3
verifyPublished
getPost
Read the post back by id to confirm it is now published.