Skip to content

Duplicate a Story

Terminal window
https://mapi.storyblok.com/v1/spaces/:space_id/stories/:story_id/duplicate

This endpoint can be used to duplicate a story into another folder.

  • :space_id required number

    Numeric ID of a space

  • :story_id required number

    ID of the story

  • story The Story Object

    Any attributes sent here will be copied to the duplicated story. To link duplicated stories as alternates, specify a group_id in the story object.

  • target_dimension number

    The id of the target folder.

  • same_path boolean

    If set to true, the current story’s path attribute will used for the duplicated story.

curl "https://mapi.storyblok.com/v1/spaces/296898/stories/531458099/duplicate" \
-X PUT \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"same_path\":true,\"story\":{\"group_id\":\"4f77133f-bb1c-4799-a54d-b6217107247f\"},\"target_dimension\":531452775}"