create_field_plugin
Create custom field plugins (field types) in Storyblok by specifying a unique name, JavaScript source, and context (space, org, or partner) for seamless integration.
Instructions
Creates a new field plugin (field type) in the specified context.
Args:
name (str): Unique name for your plugin (e.g., 'my-geo-selector').
body (str): The uncompiled JavaScript source for the plugin.
compiled_body (str): Required; empty string if developing locally.
context (str): 'space', 'org', or 'partner'.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
body | Yes | ||
compiled_body | No | ||
context | No | space | |
name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"body": {
"title": "Body",
"type": "string"
},
"compiled_body": {
"default": "",
"title": "Compiled Body",
"type": "string"
},
"context": {
"default": "space",
"title": "Context",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
}
},
"required": [
"name",
"body"
],
"title": "create_field_pluginArguments",
"type": "object"
}