WARNING

WARNING: These APIs are currently in an 'alpha' state and are likely to change over time. We recommend you not use them in a production setting at this time!


Create an ExtensionPackage

For an extension package to be available to the DTM platform, it must be added as an ExtensionPackage.

ExtensionPackages are processed asynchronously and have a status attribute representing the current status of the ExtensionPackage. There are three possible status values:

pending

When an ExtensionPackage is created, status is set to pending. This indicates that DTM received the information for the extension package and will begin processing.

ExtensionPackages with a status of pending are not available for use.

succeeded

When processing of the ExtensionPackage has completed, if processing was successful, the status will change to succeeded.

failed

When processing of the ExtensionPackage has completed, if processing was unsuccessful, the status will change to failed. An ExtensionPackage with a status of failed may be updated until processing succeeds.

ExtensionPackages with a status of failed are not available for use.

note

This endpoint expects multipart requests.

Attributes

package
required file. The extension package archive.

Definition

POST  /extension_packages

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/extension_packages \
  -H "Accept: application/vnd.api+json;revision=1" \
  -H "Content-Type: multipart/form-data" \
  -H "Authorization: Bearer [TOKEN]" \
  -H "X-Api-Key: [KEY]" \
  -F "package"="@[PATH]" 

Example Response

202 Accepted
{
  "data": {
    "id": "EP7614834fe6e5424a93fd1005c198a2e9",
    "type": "extension_packages",
    "attributes": {
      "actions": null,
      "availability": "development",
      "cdn_path": null,
      "conditions": null,
      "configuration": null,
      "created_at": "2016-11-15T11:34:56.877Z",
      "data_elements": null,
      "description": null,
      "display_name": null,
      "events": null,
      "icon_path": null,
      "name": null,
      "resources": null,
      "status": "pending",
      "updated_at": "2016-11-15T11:34:56.877Z",
      "version": null,
      "view_base_path": null
    },
    "links": {
      "self": "https://mc-api-activation-reactor-integration.adobe.io/extension_packages/EP7614834fe6e5424a93fd1005c198a2e9"
    }
  }
}