younifyd
Menu

Create Field Plugin

Create a field plugin

POST/v1/field_types

Use it in a workflow

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

Request

Request body

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

field_typeobjectrequired
namestring

Unique plugin name (required).

bodystring

Uncompiled JavaScript code.

compiled_bodystring
json
{
  "field_type": {
    "name": "string",
    "body": "string",
    "compiled_body": "string"
  }
}

Response

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

field_typeobject
json
{
  "field_type": {}
}

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