Only a development
extension package can be updated using a new archive file.
Once the ExtensionPackage
has been transitioned to either private
or public
,
it can no longer be updated. If you want to add new functionality or fix bugs,
you must first create a new
ExtensionPackage
with the same name, but a new version. Then when the new
ExtensionPackage
is transitioned to private
or public
, it will become
available in the marketplace, replacing the previous version.
When updating an ExtensionPackage
, you do not have to keep the same version
as the existing development
ExtensionPackage
. However, it must be a version
number greater than any private
or public
versions of the same extension.
This endpoint expects multipart requests.
package
PATCH /extension_packages/:id
curl https://reactor.adobe.io/extension_packages/:id \
-H "Accept: application/vnd.api+json;revision=1" \
-H "Content-Type: multipart/form-data" \
-H "Authorization: Bearer [TOKEN]" \
-H "X-Api-Key: [KEY]" \
-H "X-Gw-Ims-Org-Id: [ORG_ID]" \
-X PATCH \
-F "package=@[PACKAGE_PATH]"
{
"data": {
"id": "EP4849516b318148adafed65d629541ff9",
"type": "extension_packages",
"attributes": {
"actions": [
],
"author": {
"name": "Adobe Systems",
"url": "http://adobe.com",
"email": "reactor@adobe.com"
},
"availability": "development",
"cdn_path": "https://assets.adobedtm.com/staging/extensions/EP4849516b318148adafed65d629541ff9",
"conditions": [
],
"configuration": null,
"created_at": "2023-04-21T22:57:22.402Z",
"data_elements": [
],
"description": "Provides nothing.",
"discontinued": false,
"display_name": "Newly updated extension package",
"ecma_version": null,
"events": [
],
"exchange_url": null,
"hosted_lib_files": null,
"icon_path": "resources/icons/core.svg",
"main": null,
"name": "test-1682117842",
"owner_org_id": "08364A825824E04F0A494115@AdobeOrg",
"resources": null,
"shared_modules": null,
"status": "pending",
"platform": "web",
"updated_at": "2023-04-21T22:57:27.763Z",
"version": "2.0.0",
"view_base_path": "dist/",
"created_by_email": "ciltaru@adobe.com",
"created_by_display_name": "George Ciltaru",
"updated_by_email": "ciltaru@adobe.com",
"updated_by_display_name": "George Ciltaru"
},
"links": {
"self": "https://reactor.adobe.io/extension_packages/EP4849516b318148adafed65d629541ff9"
}
}
}