Skip to content

Update a Field Plugin

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

This endpoint can be used to perform updates to a field type plugin.

Terminal window
org_field_types/:field_type_id
Terminal window
partner_field_types/:field_type_id
  • :field_type_id required number

    Numeric id of the field plugin

  • field_type The Field Plugins Object

    The field plugin object

    Show The Field Plugins Object child properties
    • 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.

    • space_ids number[]

      Array of space ids where the field plugin is assigned to.

    • options object[]

      Options added to the plugin

      Show child properties
      • name string

        Name of the option

      • value string

        Default value of the option

  • publish number

    If this parameter is not empty the field plugin will be published.

curl "https://mapi.storyblok.com/v1/field_types/123123" \
-X PUT \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"field_type\":{\"body\":\"const Fieldtype = {}\",\"compiled_body\":\"\"}}"