capabilities.work

Clone Component

A 3-step recipe with Storyblok. We can help you get access.

Recipe · 3 steps

Clone Component

Copy a component's schema into a new component and verify it exists.

  1. Read the source component to capture its schema and nesting flags.
  2. Create a new component under the supplied name reusing the source component's schema and nesting flags.
  3. List the space components, filtered by the new name, to confirm the clone is registered.
What you'll need to have ready
  • space_id: Numeric ID of the Storyblok space.
  • component_id: Numeric ID of the source component to clone.
  • newComponentName: Technical name for the new cloned component.
For your developer

Arazzo workflow storyblok:clone-component, 3 operations: getComponent → createComponent → listComponents. Specs on APIs.io.