younifyd
Menu

Update Story

Update a story

PUT/v1/spaces/{space_id}/stories/{story_id}

Use it in a workflow

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

Request

Path parameters

space_idintegerrequired

Numeric ID of the space.

story_idintegerrequired

Numeric ID of the story.

Request body

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

storyobjectrequired
namestring

Story name

slugstring

Story slug

parent_idinteger

Parent folder ID

is_folderboolean

Create a folder instead of a story

contentobject

Story content; root object must have a component key and nested blocks a _uid.

publishboolean

Publish the story when true.

release_idinteger

Numeric ID of a release.

group_idstring

UUID shared between alternate stories.

force_updatestring

Set to "1" to force an update of a locked story.

langstring

Language code to publish individually.

json
{
  "story": {
    "name": "string",
    "slug": "string",
    "parent_id": 0,
    "is_folder": false,
    "content": {}
  },
  "publish": false,
  "release_id": 0,
  "group_id": "string",
  "force_update": "string",
  "lang": "string"
}

Response

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

storyobject
json
{
  "story": {}
}

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