younifyd
Menu

Create App Definition

Create an app definition

POST/organizations/{organizationId}/app_definitions

Use it in a workflow

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

Request

Path parameters

organizationIdstringrequired

ID of the organization

Request body

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

namestringrequired

Name of the app

srcstring

URL of the app

bundleobject
sysobject3 fields
locationsarray<object>required

Locations where the app can be installed

locationstringrequired

Location where the app can be installed

fieldTypesarray<object>required3 fields

Field types that this app can be installed on (for entry-field location)

navigationItemobject2 fields
parametersobjectrequired
json
{
  "name": "string",
  "locations": [
    {
      "location": "string",
      "fieldTypes": [
        {
          "type": "Symbol",
          "linkType": "Entry",
          "items": {}
        }
      ],
      "navigationItem": {
        "name": "string",
        "path": "string"
      }
    }
  ],
  "parameters": {},
  "src": "string",
  "bundle": {
    "sys": {
      "id": "string",
      "type": "string",
      "linkType": "string"
    }
  }
}

Response

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

sysobject
namestring

Name of the app

srcstring

URL of the app

bundleobject
sysobject3 fields
locationsarray<object>

Locations where the app can be installed

locationstringrequired

Location where the app can be installed

fieldTypesarray<object>required3 fields

Field types that this app can be installed on (for entry-field location)

navigationItemobject2 fields
parametersobject
instanceParameterobject5 fields
installationParameterobject5 fields
json
{
  "sys": {},
  "name": "string",
  "locations": [
    {
      "location": "string",
      "fieldTypes": [
        {
          "type": "Symbol",
          "linkType": "Entry",
          "items": {}
        }
      ],
      "navigationItem": {
        "name": "string",
        "path": "string"
      }
    }
  ],
  "src": "string",
  "bundle": {
    "sys": {
      "id": "string",
      "type": "string",
      "linkType": "string"
    }
  },
  "parameters": {
    "instanceParameter": {
      "type": "Symbol",
      "name": "string",
      "description": "string",
      "required": false,
      "default": {}
    },
    "installationParameter": {
      "type": "Symbol",
      "name": "string",
      "description": "string",
      "required": false,
      "default": {}
    }
  }
}

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

Was this page helpful?