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
.
PATCH /extensions/:id
curl https://reactor.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]" \
-H "X-Gw-Ims-Org-Id: [ORG_ID]" \
-X PATCH \
-d \
'
{
"data": {
"attributes": {
},
"meta": {
"action": "revise"
},
"id": "EX06155a539d8d4e4d8493fd9cc30d329e",
"type": "extensions"
}
}'
{
"data": {
"id": "EXddcfd74be8d84f909c39da62e1be6ca7",
"type": "extensions",
"attributes": {
"created_at": "2023-04-21T22:58:23.636Z",
"deleted_at": null,
"dirty": false,
"enabled": true,
"name": "kessel-test",
"published": false,
"published_at": null,
"revision_number": 1,
"updated_at": "2023-04-21T22:58:23.636Z",
"created_by_email": "ciltaru@adobe.com",
"created_by_display_name": "George Ciltaru",
"updated_by_email": "ciltaru@adobe.com",
"updated_by_display_name": "George Ciltaru",
"delegate_descriptor_id": null,
"display_name": "Kessel Test",
"review_status": "unsubmitted",
"version": "1.2.0",
"settings": "{}"
},
"relationships": {
"libraries": {
"links": {
"related": "https://reactor.adobe.io/extensions/EXddcfd74be8d84f909c39da62e1be6ca7/libraries"
}
},
"revisions": {
"links": {
"related": "https://reactor.adobe.io/extensions/EXddcfd74be8d84f909c39da62e1be6ca7/revisions"
}
},
"notes": {
"links": {
"related": "https://reactor.adobe.io/extensions/EXddcfd74be8d84f909c39da62e1be6ca7/notes"
}
},
"property": {
"links": {
"related": "https://reactor.adobe.io/extensions/EXddcfd74be8d84f909c39da62e1be6ca7/property"
},
"data": {
"id": "PR643e78fc2f6a44b68036156abfc98e1b",
"type": "properties"
}
},
"origin": {
"links": {
"related": "https://reactor.adobe.io/extensions/EXddcfd74be8d84f909c39da62e1be6ca7/origin"
},
"data": {
"id": "EX06155a539d8d4e4d8493fd9cc30d329e",
"type": "extensions"
}
},
"updated_with_extension_package": {
"links": {
"related": "https://reactor.adobe.io/extensions/EXddcfd74be8d84f909c39da62e1be6ca7/updated_with_extension_package"
},
"data": {
"id": "EP3e96b796382e49a48d76a626395d8cab",
"type": "extension_packages"
}
},
"extension_package": {
"links": {
"related": "https://reactor.adobe.io/extensions/EXddcfd74be8d84f909c39da62e1be6ca7/extension_package"
},
"data": {
"id": "EP3e96b796382e49a48d76a626395d8cab",
"type": "extension_packages"
}
}
},
"links": {
"property": "https://reactor.adobe.io/properties/PR643e78fc2f6a44b68036156abfc98e1b",
"origin": "https://reactor.adobe.io/extensions/EX06155a539d8d4e4d8493fd9cc30d329e",
"self": "https://reactor.adobe.io/extensions/EXddcfd74be8d84f909c39da62e1be6ca7",
"extension_package": "https://reactor.adobe.io/extension_packages/EP3e96b796382e49a48d76a626395d8cab",
"latest_extension_package": "https://reactor.adobe.io/extension_packages/EP3e96b796382e49a48d76a626395d8cab"
},
"meta": {
"latest_revision_number": 1
}
}
}