younifyd
Menu

Upsert App Installation

Create or update an app installation

PUT/spaces/{spaceId}/environments/{environmentId}/app_installations/{resourceId}

Use it in a workflow

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

Request

Path parameters

spaceIdstringrequired

ID of the space

environmentIdstringrequired

ID of the environment

resourceIdstringrequired

ID of the resource

Headers

X-Contentful-Marketplacestring

Request body

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

parametersobjectrequired

Configuration parameters for the app installation

srcdocstring

HTML source code for custom apps

json
{
  "parameters": {},
  "srcdoc": "string"
}

Response

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

sysobject
appDefinitionobject
sysobjectrequired3 fields
parametersobject

Configuration parameters for the app installation

srcdocstring

HTML source code for custom apps

locationsarray<object>

Locations where the app is 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
json
{
  "sys": {},
  "appDefinition": {
    "sys": {
      "id": "string",
      "type": "Link",
      "linkType": "AppDefinition"
    }
  },
  "parameters": {},
  "srcdoc": "string",
  "locations": [
    {
      "location": "string",
      "fieldTypes": [
        {
          "type": "Symbol",
          "linkType": "Entry",
          "items": {}
        }
      ],
      "navigationItem": {
        "name": "string",
        "path": "string"
      }
    }
  ]
}

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