Skip to content

Restore a Component Version

Terminal window
https://mapi.storyblok.com/v1/spaces/:space_id/versions/:version_id

Restores a component to a previously saved version.

  • :space_id required number

    Numeric ID of a space

  • :version_id number

    Numeric ID of a component version

  • model string

    Model name: components

  • model_id number

    Numeric ID of a component

curl "https://mapi.storyblok.com/v1/spaces/656/versions/279820276" \
-X PUT \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"model\":\"components\",\"model_id\":6826721}"