younifyd
Menu

Create Component

Create component

POST/v1/spaces/{space_id}/components

Use it in a workflow

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

Request

Path parameters

space_idintegerrequired

Numeric ID of the space.

Request body

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

componentobjectrequired
namestring

Technical name of the component (required).

display_namestring

Name shown in the editor.

schemaobject

Key/value pairs of component fields.

is_rootboolean

Usable as content type block.

is_nestableboolean

Usable as nestable block.

component_group_idstring

ID of the component folder.

json
{
  "component": {
    "name": "string",
    "display_name": "string",
    "schema": {},
    "is_root": false,
    "is_nestable": false,
    "component_group_id": "string"
  }
}

Response

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

componentobject
json
{
  "component": {}
}

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

Create Component — Storyblok — Documentation