Skip to content

Import a Story (XML)

PUT
https://mapi.storyblok.com/v1/spaces/:space_id/stories/:story_id/import.xml

Imports content onto an existing story from an XML payload that has been exported from the Export a Story (XML) endpoint.

  • :space_id required number

    Numeric ID of a space

  • :story_id required number

    The numeric ID of the story

  • version string

    Default: 2. Possible values: 1, 2.

  • lang_code string

    A language code (required for translation imports)

  • import_lang boolean

    Whether to import content for the specified lang_code. If false or omitted, it will fall back to default language values.

  • data required string

    An XML string with the same structure as the one exported from Export a Story (XML).

Was this page helpful?

What went wrong?

This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window) . Terms of Service (opens in a new window) apply.