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!


Revise an Extension

Revising an Extension is the action of creating a new revision of the extension with the current (head) revision. A revision of an Extension will have its own Id. The original Extension may be discovered via the origin link.

Revising an Extension is achieved by supplying an action with a value of revise in the meta of the request data.

Attributes

enabled
boolean - optional
settings
string - optional
Settings json object represented as a string

Definition

PATCH  /extensions/:id

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/extensions/:id \
  -H "Accept: application/vnd.api+json;revision=1" \
  -H "Content-Type: application/vnd.api+json" \
  -H "Authorization: Bearer [TOKEN]" \
  -H "X-Api-Key: [KEY]" \
  -X PATCH \
  -d \
'
{
  "data": {
    "attributes": {
    },
    "meta": {
      "action": "revise"
    },
    "id": "EX7c35b6c89a2f4e509229a6ea258d3438",
    "type": "extensions"
  }
}'

Example Response

200 OK
{
  "data": {
    "id": "EX11ff554aa18344bbb964c4fe2e0810a9",
    "type": "extensions",
    "attributes": {
      "created_at": "2018-08-31T16:50:13.575Z",
      "dirty": false,
      "enabled": true,
      "name": "kessel-test",
      "published": false,
      "published_at": null,
      "revision_number": 1,
      "updated_at": "2018-08-31T16:50:13.575Z",
      "delegate_descriptor_id": null,
      "display_name": "Kessel Test",
      "review_status": "unsubmitted",
      "version": "1.2.0",
      "settings": "{}"
    },
    "relationships": {
      "libraries": {
        "links": {
          "related": "http://localhost:9010/extensions/EX11ff554aa18344bbb964c4fe2e0810a9/libraries"
        }
      },
      "revisions": {
        "links": {
          "related": "http://localhost:9010/extensions/EX11ff554aa18344bbb964c4fe2e0810a9/revisions"
        }
      },
      "property": {
        "links": {
          "related": "http://localhost:9010/extensions/EX11ff554aa18344bbb964c4fe2e0810a9/property"
        },
        "data": {
          "id": "PRca137eb2445440e9a729f683a6e36d96",
          "type": "properties"
        }
      },
      "origin": {
        "links": {
          "related": "http://localhost:9010/extensions/EX11ff554aa18344bbb964c4fe2e0810a9/origin"
        },
        "data": {
          "id": "EX7c35b6c89a2f4e509229a6ea258d3438",
          "type": "extensions"
        }
      },
      "updated_with_extension_package": {
        "links": {
          "related": "http://localhost:9010/extensions/EX11ff554aa18344bbb964c4fe2e0810a9/updated_with_extension_package"
        },
        "data": {
          "id": "EP27e9323eb585411fae6086fc78a3b70b",
          "type": "extension_packages"
        }
      },
      "extension_package": {
        "links": {
          "related": "http://localhost:9010/extensions/EX11ff554aa18344bbb964c4fe2e0810a9/extension_package"
        },
        "data": {
          "id": "EP27e9323eb585411fae6086fc78a3b70b",
          "type": "extension_packages"
        }
      }
    },
    "links": {
      "property": "http://localhost:9010/properties/PRca137eb2445440e9a729f683a6e36d96",
      "origin": "http://localhost:9010/extensions/EX7c35b6c89a2f4e509229a6ea258d3438",
      "self": "http://localhost:9010/extensions/EX11ff554aa18344bbb964c4fe2e0810a9",
      "extension_package": "http://localhost:9010/extension_packages/EP27e9323eb585411fae6086fc78a3b70b",
      "latest_extension_package": "http://localhost:9010/extension_packages/EP27e9323eb585411fae6086fc78a3b70b"
    },
    "meta": {
      "latest_revision_number": 1
    }
  }
}