Skip to content

Create a Field Plugin

Terminal window
https://mapi.storyblok.com/v1/field_types

This endpoint allows you to create a field type plugin.

Terminal window
org_field_types/
Terminal window
partner_field_types/
  • field_type The Field Plugins Object

    The field plugin object

    Show The Field Plugins Object child properties
    • name required string

      Given name of your field plugin. Needs to be unique. A personal prefix is recommended (Example: my-geo-selector).

    • body string

      The uncompiled JavaScript code of the field plugin.

    • compiled_body string

      Used by the online code editor. Needs to be an empty string if using local plugin development.

curl "https://mapi.storyblok.com/v1/field_types/" \
-X POST \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"field_type\":{\"name\":\"my-geo-selector\"}}"