younifyd
Menu

Update Component

Update component

PUT/v1/spaces/{space_id}/components/{component_id}

Use it in a workflow

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

Request

Path parameters

space_idintegerrequired

Numeric ID of the space.

component_idintegerrequired

Numeric ID of the component.

Request body

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

componentobjectrequired
namestring
display_namestring
schemaobject
is_rootboolean
is_nestableboolean
json
{
  "component": {
    "name": "string",
    "display_name": "string",
    "schema": {},
    "is_root": false,
    "is_nestable": false
  }
}

Response

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

componentobject
json
{
  "component": {}
}

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