Skip to content

Restore a Story Version

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

This endpoint lets you restore a story to a specific version.

  • :space_id required number

    The space ID

  • :story_id required number

    The numeric ID of the story

  • versions_v2 required boolean

    When set to true, the version passed is treated as a new story version, while setting it to false treats it as a legacy version. (Read the note on the get story versions endpoint to learn how to differentiate between new and legacy versions.)

  • version required string

    The ID of the story version

curl "https://mapi.storyblok.com/v1/spaces/325428/stories/623949938/restore_with?version=55648825&versions_v2=true" \
-H "Authorization: YOUR_OAUTH_TOKEN"