younifyd
Menu

Restore Component Version

Restore a component version

PUT/v1/spaces/{space_id}/versions/{version_id}

Use it in a workflow

  1. Add a step and choose the Storyblok connector.
  2. Pick the Restore Component Version action (under Components).
  3. Fill in the fields below, then reference the result from later steps as {{restoreComponentVersion.response.data}}.

Request

Path parameters

space_idintegerrequired

Numeric ID of the space.

version_idintegerrequired

Numeric ID of the version.

Request body

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

modelstring

Model name: components.

model_idinteger

Numeric ID of the component.

json
{
  "model": "string",
  "model_id": 0
}

Response

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

componentobject
json
{
  "component": {}
}

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