Import a Story (XML)
https://mapi.storyblok.com/v1/spaces/:space_id/stories/:story_id/import.xmlImports content onto an existing story from an XML payload that has been exported from the Export a Story (XML) endpoint.
Path parameters
Section titled “Path parameters”- :space_id required number
Numeric ID of a space
- :story_id required number
The numeric ID of the story
Query parameters
Section titled “Query parameters”- 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. Iffalseor omitted, it will fall back to default language values.
Request body properties
Section titled “Request body properties”- data required string
An XML string with the same structure as the one exported from Export a Story (XML).
Response properties
Section titled “Response properties”- story The Story Object
A single story object
Examples
Section titled “Examples”Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window) . Terms of Service (opens in a new window) apply.
Get in touch with the Storyblok community