Update Story

storyblok.update_story
ActionBusiness appsconnection required

Calls the Storyblok API with the connection's credentials.

Replace a story with the object given, optionally publishing it in the same call.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Storyblok
Secret shape
the personal access token, or {"access_token": "…"}
Config it needs
base_url, region, space_id
Resolved by
config.connection_id, else node.connection_id

Configuration

7 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
space_id
Numeric id of the space to act in, from Settings → Space. Overrides the default space on the connection.
stringNo——123456
story_id
Numeric id of the story, as Storyblok reports it in a listing.
stringYes——1234567
story
The whole story object to write. Storyblok replaces the entry with this, so start from what storyblok.get_story returned.
objectYes——{"content":{"body":[],"component":"page"},"name":"Pricing"}
publish
Publish the story after saving it. Note that false does not unpublish — use Storyblok: Unpublish Story for that.
booleanNofalse——
force_update
Save even when another user holds a lock on the story. Workflow locks are not overridden.
booleanNofalse——
lang
Comma-separated language codes to act on, e.g. es,pt-br. Leave empty for the whole story; per-language publishing must be enabled on the space.
stringNo——es,pt-br
release_id
Numeric id of a release to attach this write to. Leave empty to write to the current content.
numberNo—≥ 1—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "force_update": false,
  "lang": "es,pt-br",
  "publish": false,
  "space_id": "123456",
  "story": {
    "content": {
      "body": [],
      "component": "page"
    },
    "name": "Pricing"
  },
  "story_id": "1234567"
}

Output

One shape.

result

FieldTypeExample
story
The story object Storyblok returned.
object—
story_id
Numeric id of the story.
number—
uuid
The story's UUID, which the Content Delivery API uses.
string—
full_slug
The story's full slug, including its folders.
string—
published
Whether Storyblok reports the story as published.
boolean—
space_id
The space the story belongs to.
string—
{
  "full_slug": "",
  "published": false,
  "space_id": "",
  "story": {},
  "story_id": 0,
  "uuid": ""
}

Notes

  • An update replaces the story: any field the object omits is dropped.

See Update Story run in a workflow.

In a technical demo we add the Storyblok connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.