WordPress · Arazzo Workflow
WordPress Categorize and Publish Post
Version 1.0.0
Create a category, publish a post into it, then read the post back.
Provider
Workflows
categorize-and-publish-post
Create a category and publish a post assigned to it.
Creates a new category term, creates a post whose categories array references the freshly created category id and whose status is publish, and then fetches the created post by id to verify it persisted.
1
createCategory
createCategory
Create the category term that the post will be filed under. WordPress returns 201 with the new term id on success.
2
createPost
createPost
Publish a new post and assign it to the category created in the prior step by referencing its id in the categories array.
3
getPost
getPost
Read the newly created post back by id to confirm it persisted with the expected published status.