younifyd
Menu

Get Editor Interface

Get the editor interface

GET/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 Get Editor Interface action (under Contentful Content Management API).
  3. Fill in the fields below, then reference the result from later steps as {{getEditorInterface.response.data}}.

Request

Path parameters

spaceIdstringrequired

ID of the space

environmentIdstringrequired

ID of the environment

contentTypeIdstringrequired

ID of the content type

Response

Returns 200 with an object. Read it in later steps with {{getEditorInterface.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.

Was this page helpful?