younifyd
Menu

Import Story Xml

Import a story from XML

PUT/v1/spaces/{space_id}/stories/{story_id}/import.xml

Use it in a workflow

  1. Add a step and choose the Storyblok connector.
  2. Pick the Import Story Xml action (under Stories).
  3. Fill in the fields below, then reference the result from later steps as {{importStoryXml.response.data}}.

Request

Path parameters

space_idintegerrequired

Numeric ID of the space.

story_idintegerrequired

Numeric ID of the story.

Query parameters

versionstring

Export/import format version, 1 (deprecated) or 2. Default 2.

lang_codestring

Language code for the export or import.

import_langboolean

Import values for lang_code; otherwise default language values.

Request body

Enter the body as JSON in the step's Body field.

datastringrequired

XML string from the export endpoint.

json
{
  "data": "string"
}

Response

Returns 200 with an object. Read it in later steps with {{importStoryXml.response.data.<field>}}.

storyobject
json
{
  "story": {}
}

Need more? See the Storyblok guide for connection setup and behaviour shared by every action.

Was this page helpful?