younifyd
Menu

Update Editor Interface

Update the editor interface

PUT/spaces/{spaceId}/environments/{environmentId}/content_types/{contentTypeId}/editor_interface

Use it in a workflow

  1. Add a step and choose the Contentful connector.
  2. Pick the Update Editor Interface action (under Contentful Content Management API).
  3. Fill in the fields below, then reference the result from later steps as {{updateEditorInterface.response.data}}.

Request

Path parameters

spaceIdstringrequired

ID of the space

environmentIdstringrequired

ID of the environment

contentTypeIdstringrequired

ID of the content type

Headers

X-Contentful-Versioninteger (int64)required

The version of the locale to update.

Request body

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

controlsarray<object>required

Controls for each field in the content type

fieldIdstringrequired

ID of the field this control is for

widgetIdstring

ID of the widget to use for this field (optional)

widgetNamespacestring

Namespace of the widget (optional)

One ofbuiltinappextension

disabledboolean

Whether the field is disabled

settingsobject8 fields

Widget-specific settings (optional)

sidebararray<object>
widgetIdstring

ID of the widget to use for this field (optional)

widgetNamespacestring

Namespace of the widget (optional)

One ofbuiltinappextension

disabledboolean

Whether the field is disabled

settingsobject8 fields

Widget-specific settings (optional)

editorsarray<object>
widgetIdstring

ID of the widget to use for this field (optional)

widgetNamespacestring

Namespace of the widget (optional)

One ofbuiltinappextension

disabledboolean

Whether the field is disabled

settingsobject8 fields

Widget-specific settings (optional)

editorLayoutarray<object>

To be implemented

groupControlsarray<object>

To be implemented

json
{
  "controls": [
    {
      "fieldId": "string",
      "widgetId": "string",
      "widgetNamespace": "builtin",
      "disabled": false,
      "settings": {
        "helpText": "string",
        "stars": "string",
        "trueLabel": "string",
        "falseLabel": "string",
        "ampm": "string",
        "format": "string",
        "bulkEditing": false,
        "trackingFieldId": "string"
      }
    }
  ],
  "sidebar": [
    {
      "widgetId": "string",
      "widgetNamespace": "builtin",
      "disabled": false,
      "settings": {
        "helpText": "string",
        "stars": "string",
        "trueLabel": "string",
        "falseLabel": "string",
        "ampm": "string",
        "format": "string",
        "bulkEditing": false,
        "trackingFieldId": "string"
      }
    }
  ],
  "editors": [
    {
      "widgetId": "string",
      "widgetNamespace": "builtin",
      "disabled": false,
      "settings": {
        "helpText": "string",
        "stars": "string",
        "trueLabel": "string",
        "falseLabel": "string",
        "ampm": "string",
        "format": "string",
        "bulkEditing": false,
        "trackingFieldId": "string"
      }
    }
  ],
  "editorLayout": [
    {}
  ],
  "groupControls": [
    {}
  ]
}

Response

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

sysobject
controlsarray<object>

Controls for each field in the content type

fieldIdstringrequired

ID of the field this control is for

widgetIdstring

ID of the widget to use for this field (optional)

widgetNamespacestring

Namespace of the widget (optional)

One ofbuiltinappextension

disabledboolean

Whether the field is disabled

settingsobject8 fields

Widget-specific settings (optional)

sidebararray<object>
widgetIdstring

ID of the widget to use for this field (optional)

widgetNamespacestring

Namespace of the widget (optional)

One ofbuiltinappextension

disabledboolean

Whether the field is disabled

settingsobject8 fields

Widget-specific settings (optional)

editorsarray<object>
widgetIdstring

ID of the widget to use for this field (optional)

widgetNamespacestring

Namespace of the widget (optional)

One ofbuiltinappextension

disabledboolean

Whether the field is disabled

settingsobject8 fields

Widget-specific settings (optional)

editorLayoutarray<object>

To be implemented

groupControlsarray<object>

To be implemented

json
{
  "sys": {},
  "controls": [
    {
      "fieldId": "string",
      "widgetId": "string",
      "widgetNamespace": "builtin",
      "disabled": false,
      "settings": {
        "helpText": "string",
        "stars": "string",
        "trueLabel": "string",
        "falseLabel": "string",
        "ampm": "string",
        "format": "string",
        "bulkEditing": false,
        "trackingFieldId": "string"
      }
    }
  ],
  "sidebar": [
    {
      "widgetId": "string",
      "widgetNamespace": "builtin",
      "disabled": false,
      "settings": {
        "helpText": "string",
        "stars": "string",
        "trueLabel": "string",
        "falseLabel": "string",
        "ampm": "string",
        "format": "string",
        "bulkEditing": false,
        "trackingFieldId": "string"
      }
    }
  ],
  "editors": [
    {
      "widgetId": "string",
      "widgetNamespace": "builtin",
      "disabled": false,
      "settings": {
        "helpText": "string",
        "stars": "string",
        "trueLabel": "string",
        "falseLabel": "string",
        "ampm": "string",
        "format": "string",
        "bulkEditing": false,
        "trackingFieldId": "string"
      }
    }
  ],
  "editorLayout": [
    {}
  ],
  "groupControls": [
    {}
  ]
}

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