Author and Publish Story
A 4-step recipe with Storyblok. We can help you get access.
Recipe · 4 steps
Author and Publish Story
with Storyblok
Create, read, update, and publish a story in one flow.
- Create the draft story with its initial content.
- Read the story back by its numeric ID to confirm its persisted state.
- Update the story with revised content, preserving its name and slug from the read-back step.
- Publish the updated story so it goes live in the Content Delivery API.
What you'll need to have ready
- space_id: Numeric ID of the Storyblok space.
- storyName: Display name of the story.
- storySlug: URL-safe slug segment for the story.
- componentType: Component type name to set on the story content.
- initialContent: Initial content body for the story (must include a component field).
- revisedContent: Revised content body applied during the update step.
For your developer
Arazzo workflow storyblok:author-and-publish-story, 4 operations: createStory → getManagementStory → updateStory → publishStory. Specs on APIs.io.