Skip to content

Duplicate a Workflow

Terminal window
https://mapi.storyblok.com/v1/spaces/:space_id/workflows/:workflow_id/duplicate

Creates a new custom workflow by duplicating an existing workflow using the workflow id of the parent workflow. Duplicating a workflow keeps workflow stages the same for the new workflow.

The name and content types are required and should be different.

  • :space_id required number

    Numeric ID of a space

curl "https://mapi.storyblok.com/v1/spaces/606/workflows/656/duplicate" \
-X POST \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"workflow\":{\"content_types\":[\"page_new\"],\"name\":\"duplicated page\"}}"

You will receive a workflows object as a response along with another property called workflow_stages - these workflow stages are inherited from the parent workflow.