Unpublish Post to Draft
A 3-step recipe with WordPress. We can help you get access.
Recipe · 3 steps
Unpublish Post to Draft
with WordPress
Locate a published post and revert it to draft status.
- Search published posts for the supplied query, returning at most one match to revert.
- Update the matched post so its status becomes draft, removing it from public view while preserving its content.
- Read the post back by id to confirm it now carries draft status.
What you'll need to have ready
- authorization: HTTP Basic Authorization header value built from a WordPress Application Password (e.g. "Basic dXNlcjpwYXNzd29yZA==").
- query: The search string used to locate the published post.
For your developer
Arazzo workflow wordpress:unpublish-post-to-draft, 3 operations: listPosts → updatePost → getPost. Specs on APIs.io.