Download OpenAPI specification:Download
API definitions for asset management capabilities in AEM Assets. To configure a client to access to these APIs, visit the Adobe Developer Console and add the "AEM Assets Author API" card to your project.
Deletes an existing asset from the system. In most cases, a 204 response will be returned immediately, but in some cases, a 202 will be returned if the operation may take a long time to complete. This most commonly occurs when an asset has a large number of references to update, but can occur for other reasons as well.
Accepted
No Content
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Forbidden
Not Found
Unacceptable. Indicates that the target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request.
{- "jobId": "85f7c90a-a252-4e82-8cf3-3c989829cdf9",
- "state": "PROCESSING"
}
Retrieves the current status of a job created by the API.
Status of a job being processed
The job has finished executing and results are available at the indicated location.
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Forbidden
Not Found
Unacceptable. Indicates that the target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request.
{- "jobId": "85f7c90a-a252-4e82-8cf3-3c989829cdf9",
- "state": "PROCESSING"
}
Event triggered when an asset has completed processing in AEM. This is often used in place of an 'asset created' event for use cases that trigger from asset creation for two reasons - many extensions require some amount of asset metadata, which is extracted during asset processing and acting upon an asset that is in processing has a high chance of running into conflicts and contention issues.
id required | string non-empty An identifier for the event. When used in combination with the |
source required | string <uri> non-empty ^acct:aem(-cmstg)?-p\d+-e\d+@adobe\.com$ An instance of the acct URI scheme that uniquely identifies the
producer of this event, of the format |
specversion required | string >= 3 characters The version of the CloudEvents specification which the event uses. AEM events use the CloudEvents spec version 1.0.2, hence this value will be 1.0. |
type required | string >= 4 characters ^aem\..*$ The type for the event. This will identify the AEM solution that has dispatched the event and may also include the type of entity and the activity that occurred. |
datacontenttype required | string non-empty The format of the data in the event. This will always be |
dataschema | string <uri> An optional attribute, which may point to a JSON schema document that covers the data object. |
time required | string <date-time> non-empty A timestamp of when the event occurred. |
required | object The event payload. |
Asset processing completed event data is received successfully
{- "specversion": "1.0",
- "type": "aem.assets.asset.processing_completed",
- "source": "acct:aem-p56789-e12345@adobe.com",
- "id": "7c1104e5-4cd7-47d6-a50f-2568c480f2e9",
- "time": "2018-04-05T17:31:00Z",
- "datacontenttype": "application/json",
- "data": {
- "myProp": "myValue",
- "value": {
- "assetId": "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456",
- "assetMetadata": {
- "xcm:machineKeywords": [
- {
- "value": "city",
- "confidence": 0.8512217998504639,
- "localeCode": "en-US"
}
], - "pur:expirationDate": "2023-04-17T06:31:07.174Z"
}, - "repositoryMetadata": {
- "aem:assetState": "processed",
- "aem:checkedOutBy": "testuser@test.com",
- "dam:sha1": "8601cc48d27d85ae274c954286edfde34b907e12",
- "dc:format": "image/jpeg",
- "repo:createDate": "2023-04-14T06:31:07.174Z",
- "repo:createdBy": "user@adobe.com",
- "repo:modifiedBy": "dam-writer-service",
- "repo:modifyDate": "2023-04-15T05:01:44.229Z",
- "repo:name": "city.jpeg",
- "repo:path": "/content/dam/city.jpeg",
- "repo:size": 338049,
- "repo:version": "oak:1.0::ci:y7ngaf96th56jt62awk8xkoa37c572fe",
- "tiff:imageLength": 780,
- "tiff:imageWidth": 1000,
- "repo:repositoryId": "author-p12345-e123456.adobeaemcloud.com",
- "repo:ancestors": [
- "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456"
], - "repo:state": "ACTIVE",
- "aem:published": "2023-04-22T23:26:09.036Z"
}
}
}
}
An event that is triggered when an asset is deleted from AEM through the Assets View UI or the Assets Open API. It is not triggered when the asset is deleted with the AEM Touch UI or other AEM APIs.
id required | string non-empty An identifier for the event. When used in combination with the |
source required | string <uri> non-empty ^acct:aem(-cmstg)?-p\d+-e\d+@adobe\.com$ An instance of the acct URI scheme that uniquely identifies the
producer of this event, of the format |
specversion required | string >= 3 characters The version of the CloudEvents specification which the event uses. AEM events use the CloudEvents spec version 1.0.2, hence this value will be 1.0. |
type required | string >= 4 characters ^aem\..*$ The type for the event. This will identify the AEM solution that has dispatched the event and may also include the type of entity and the activity that occurred. |
datacontenttype required | string non-empty The format of the data in the event. This will always be |
dataschema | string <uri> An optional attribute, which may point to a JSON schema document that covers the data object. |
time required | string <date-time> non-empty A timestamp of when the event occurred. |
required | object The event payload. |
Asset deleted event data is received successfully
{- "specversion": "1.0",
- "type": "aem.assets.asset.deleted",
- "source": "acct:aem-p56789-e12345@adobe.com",
- "id": "4fd1cdd8-0898-4d60-90ad-3d442517d3cb",
- "time": "2021-05-20T20:00:00.000Z",
- "datacontenttype": "application/json",
- "data": {
- "assetId": "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456",
- "user": {
- "imsUserId": "11362B9E62F4CD400A495ECF@09f51d11618ca7b4495ee0.e",
- "principalId": "testuser@adobe.com",
- "displayName": "Test User"
}, - "repositoryMetadata": {
- "aem:assetState": "processed",
- "aem:checkedOutBy": "testuser@test.com",
- "dam:sha1": "8601cc48d27d85ae274c954286edfde34b907e12",
- "dc:format": "image/jpeg",
- "repo:createDate": "2023-04-14T06:31:07.174Z",
- "repo:createdBy": "user@adobe.com",
- "repo:modifiedBy": "dam-writer-service",
- "repo:modifyDate": "2023-04-15T05:01:44.229Z",
- "repo:name": "city.jpeg",
- "repo:path": "/content/dam/city.jpeg",
- "repo:size": 338049,
- "repo:version": "oak:1.0::ci:y7ngaf96th56jt62awk8xkoa37c572fe",
- "tiff:imageLength": 780,
- "tiff:imageWidth": 1000,
- "repo:repositoryId": "author-p12345-e123456.adobeaemcloud.com",
- "repo:ancestors": [
- "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456"
], - "repo:state": "ACTIVE",
- "aem:published": "2023-04-15T05:03:47.229Z",
- "repo:assetClass": "file"
}, - "assetMetadata": {
- "xcm:machineKeywords": [
- {
- "value": "graphic design",
- "confidence": 0.926
}, - {
- "value": "clipart",
- "confidence": 0.757
}
], - "pur:expirationDate": "2023-04-17T06:31:07.174Z"
}
}
}
Event triggered when an asset, folder or collection of assets is downloaded from AEM.
id required | string non-empty An identifier for the event. When used in combination with the |
source required | string <uri> non-empty ^acct:aem(-cmstg)?-p\d+-e\d+@adobe\.com$ An instance of the acct URI scheme that uniquely identifies the
producer of this event, of the format |
specversion required | string >= 3 characters The version of the CloudEvents specification which the event uses. AEM events use the CloudEvents spec version 1.0.2, hence this value will be 1.0. |
type required | string >= 4 characters ^aem\..*$ The type for the event. This will identify the AEM solution that has dispatched the event and may also include the type of entity and the activity that occurred. |
datacontenttype required | string non-empty The format of the data in the event. This will always be |
dataschema | string <uri> An optional attribute, which may point to a JSON schema document that covers the data object. |
time required | string <date-time> non-empty A timestamp of when the event occurred. |
required | object The event payload. |
Asset downloaded event data is received successfully
{- "specversion": "1.0",
- "type": "aem.assets.asset.downloaded",
- "source": "acct:aem-p56789-e12345@adobe.com",
- "id": "7c1104e5-4cd7-47d6-a50f-2568c480f2e9",
- "time": "2018-04-05T17:31:00Z",
- "datacontenttype": "application/json",
- "data": {
- "myProp": "myValue",
- "user": {
- "imsUserId": "string",
- "principalId": "string",
- "displayName": "string"
}, - "assetId": "urn:aaid:aem:1a034bee-ebda-4787-bad3-f924d0772b75",
- "assetMetadata": {
- "xcm:machineKeywords": [
- {
- "value": "graphic design",
- "confidence": 0.926
}, - {
- "value": "clipart",
- "confidence": 0.757
}
], - "pur:expirationDate": "2023-04-17T06:31:07.174Z",
- "dc:title": "Asset name"
}, - "repositoryMetadata": {
- "aem:assetState": "processed",
- "aem:checkedOutBy": "testuser@test.com",
- "dam:sha1": "8601cc48d27d85ae274c954286edfde34b907e12",
- "dc:format": "image/jpeg",
- "repo:createDate": "2023-04-14T06:31:07.174Z",
- "repo:createdBy": "user@adobe.com",
- "repo:modifiedBy": "dam-writer-service",
- "repo:modifyDate": "2023-04-15T05:01:44.229Z",
- "repo:name": "city.jpeg",
- "repo:path": "/content/dam/city.jpeg",
- "repo:size": 338049,
- "repo:version": "oak:1.0::ci:y7ngaf96th56jt62awk8xkoa37c572fe",
- "tiff:imageLength": 780,
- "tiff:imageWidth": 1000,
- "repo:repositoryId": "author-p12345-e123456.adobeaemcloud.com",
- "repo:ancestors": [
- "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456"
], - "repo:state": "ACTIVE",
- "aem:published": "2023-04-22T23:26:09.036Z",
- "repo:assetClass": "file"
}
}
}
Event triggered when an asset has had its metadata updated through the Assets View UI or the Assets Open API. It is not triggered when metadata is updated with the AEM Touch UI or other AEM APIs.
id required | string non-empty An identifier for the event. When used in combination with the |
source required | string <uri> non-empty ^acct:aem(-cmstg)?-p\d+-e\d+@adobe\.com$ An instance of the acct URI scheme that uniquely identifies the
producer of this event, of the format |
specversion required | string >= 3 characters The version of the CloudEvents specification which the event uses. AEM events use the CloudEvents spec version 1.0.2, hence this value will be 1.0. |
type required | string >= 4 characters ^aem\..*$ The type for the event. This will identify the AEM solution that has dispatched the event and may also include the type of entity and the activity that occurred. |
datacontenttype required | string non-empty The format of the data in the event. This will always be |
dataschema | string <uri> An optional attribute, which may point to a JSON schema document that covers the data object. |
time required | string <date-time> non-empty A timestamp of when the event occurred. |
required | object The event payload. |
Asset metadata updated event data is received successfully
{- "specversion": "1.0",
- "type": "aem.assets.asset.metadata_updated",
- "source": "acct:aem-p56789-e12345@adobe.com",
- "id": "7c1104e5-4cd7-47d6-a50f-2568c480f2e9",
- "time": "2018-04-05T17:31:00Z",
- "datacontenttype": "application/json",
- "data": {
- "myProp": "myValue",
- "user": {
- "imsUserId": "string",
- "principalId": "string",
- "displayName": "string"
}, - "assetId": "urn:aaid:aem:1a034bee-ebda-4787-bad3-f924d0772b75",
- "assetMetadata": {
- "addedProp": "addedValue",
- "dc:description": "The updated description.",
- "event:created": [
- "addedProp"
], - "event:updated": {
- "dc:description": "The previous description before the update."
}, - "event:deleted": {
- "removedProp": "removedValue"
}, - "xcm:machineKeywords": [
- {
- "value": "city",
- "confidence": 0.8512217998504639
}
], - "pur:expirationDate": "2023-04-17T06:31:07.174Z",
- "dc:title": "Asset name"
}, - "repositoryMetadata": {
- "aem:assetState": "processed",
- "aem:checkedOutBy": "testuser@test.com",
- "dam:sha1": "8601cc48d27d85ae274c954286edfde34b907e12",
- "dc:format": "image/jpeg",
- "repo:createDate": "2023-04-14T06:31:07.174Z",
- "repo:createdBy": "user@adobe.com",
- "repo:modifiedBy": "dam-writer-service",
- "repo:modifyDate": "2023-04-15T05:01:44.229Z",
- "repo:name": "city.jpeg",
- "repo:path": "/content/dam/city.jpeg",
- "repo:size": 338049,
- "repo:version": "oak:1.0::ci:y7ngaf96th56jt62awk8xkoa37c572fe",
- "tiff:imageLength": 780,
- "tiff:imageWidth": 1000,
- "repo:repositoryId": "author-p12345-e123456.adobeaemcloud.com",
- "repo:ancestors": [
- "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456"
], - "repo:state": "ACTIVE",
- "aem:published": "2023-04-22T23:26:09.036Z",
- "repo:assetClass": "file"
}
}
}
This event is triggered when an asset is published from an author instance to a publish instance. This event will be sent whenever an asset is published directly. Additionally, if an asset is moved using the Assets View UI or the OpenAPI, an asset unpublished event will be sent, followed by an asset published event. We do not support this behavior when assets are moved from the Admin View UI (aka Touch UI) or from other APIs, such as Java APIs running in-process in the AEM environment.
id required | string non-empty An identifier for the event. When used in combination with the |
source required | string <uri> non-empty ^acct:aem(-cmstg)?-p\d+-e\d+@adobe\.com$ An instance of the acct URI scheme that uniquely identifies the
producer of this event, of the format |
specversion required | string >= 3 characters The version of the CloudEvents specification which the event uses. AEM events use the CloudEvents spec version 1.0.2, hence this value will be 1.0. |
type required | string >= 4 characters ^aem\..*$ The type for the event. This will identify the AEM solution that has dispatched the event and may also include the type of entity and the activity that occurred. |
datacontenttype required | string non-empty The format of the data in the event. This will always be |
dataschema | string <uri> An optional attribute, which may point to a JSON schema document that covers the data object. |
time required | string <date-time> non-empty A timestamp of when the event occurred. |
required | object The event payload. |
Asset published event data is received successfully
{- "specversion": "1.0",
- "type": "aem.assets.asset.published",
- "source": "acct:aem-p56789-e12345@adobe.com",
- "id": "4fd1cdd8-0898-4d60-90ad-3d442517d3cb",
- "time": "2021-05-20T20:00:00.000Z",
- "datacontenttype": "application/json",
- "data": {
- "assetId": "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456",
- "user": {
- "imsUserId": "11362B9E62F4CD400A495ECF@09f51d11618ca7b4495ee0.e",
- "principalId": "testuser@adobe.com",
- "displayName": "Test User"
}, - "tier": "publish",
- "repositoryMetadata": {
- "aem:assetState": "processed",
- "aem:checkedOutBy": "testuser@test.com",
- "dam:sha1": "8601cc48d27d85ae274c954286edfde34b907e12",
- "dc:format": "image/jpeg",
- "repo:createDate": "2023-04-14T06:31:07.174Z",
- "repo:createdBy": "user@adobe.com",
- "repo:modifiedBy": "dam-writer-service",
- "repo:modifyDate": "2023-04-15T05:01:44.229Z",
- "repo:name": "city.jpeg",
- "repo:path": "/content/dam/city.jpeg",
- "repo:size": 338049,
- "repo:version": "oak:1.0::ci:y7ngaf96th56jt62awk8xkoa37c572fe",
- "tiff:imageLength": 780,
- "tiff:imageWidth": 1000,
- "repo:repositoryId": "author-p12345-e123456.adobeaemcloud.com",
- "repo:ancestors": [
- "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456"
], - "repo:state": "ACTIVE",
- "aem:published": "2023-04-15T05:03:47.229Z",
- "repo:assetClass": "file"
}, - "assetMetadata": {
- "xcm:machineKeywords": [
- {
- "value": "graphic design",
- "confidence": 0.926
}, - {
- "value": "clipart",
- "confidence": 0.757
}
], - "pur:expirationDate": "2023-04-17T06:31:07.174Z"
}
}
}
An event that is triggered when an asset is unpublished from an AEM publish instance. This event will be sent whenever an asset is unpublished directly. Additionally, if an asset is moved or deleted using the Assets View UI or the OpenAPI, an asset unpublished event will be sent. We do not support this behavior when assets are moved or deleted from the Admin View UI (aka Touch UI) or from other APIs, such as Java APIs running in-process in the AEM environment.
id required | string non-empty An identifier for the event. When used in combination with the |
source required | string <uri> non-empty ^acct:aem(-cmstg)?-p\d+-e\d+@adobe\.com$ An instance of the acct URI scheme that uniquely identifies the
producer of this event, of the format |
specversion required | string >= 3 characters The version of the CloudEvents specification which the event uses. AEM events use the CloudEvents spec version 1.0.2, hence this value will be 1.0. |
type required | string >= 4 characters ^aem\..*$ The type for the event. This will identify the AEM solution that has dispatched the event and may also include the type of entity and the activity that occurred. |
datacontenttype required | string non-empty The format of the data in the event. This will always be |
dataschema | string <uri> An optional attribute, which may point to a JSON schema document that covers the data object. |
time required | string <date-time> non-empty A timestamp of when the event occurred. |
required | object The event payload. |
Asset unpublished event data is received successfully
{- "specversion": "1.0",
- "type": "aem.assets.asset.unpublished",
- "source": "acct:aem-p56789-e12345@adobe.com",
- "id": "4fd1cdd8-0898-4d60-90ad-3d442517d3cb",
- "time": "2021-05-20T20:00:00.000Z",
- "datacontenttype": "application/json",
- "data": {
- "assetId": "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456",
- "user": {
- "imsUserId": "11362B9E62F4CD400A495ECF@09f51d11618ca7b4495ee0.e",
- "principalId": "testuser@adobe.com",
- "displayName": "Test User"
}, - "tier": "publish",
- "repositoryMetadata": {
- "aem:assetState": "processed",
- "aem:checkedOutBy": "testuser@test.com",
- "dam:sha1": "8601cc48d27d85ae274c954286edfde34b907e12",
- "dc:format": "image/jpeg",
- "repo:createDate": "2023-04-14T06:31:07.174Z",
- "repo:createdBy": "user@adobe.com",
- "repo:modifiedBy": "dam-writer-service",
- "repo:modifyDate": "2023-04-15T05:01:44.229Z",
- "repo:name": "city.jpeg",
- "repo:path": "/content/dam/city.jpeg",
- "repo:size": 338049,
- "repo:version": "oak:1.0::ci:y7ngaf96th56jt62awk8xkoa37c572fe",
- "tiff:imageLength": 780,
- "tiff:imageWidth": 1000,
- "repo:repositoryId": "author-p12345-e123456.adobeaemcloud.com",
- "repo:ancestors": [
- "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456"
], - "repo:state": "ACTIVE",
- "aem:published": "2023-04-15T05:03:47.229Z",
- "repo:assetClass": "file"
}, - "assetMetadata": {
- "xcm:machineKeywords": [
- {
- "value": "graphic design",
- "confidence": 0.926
}, - {
- "value": "clipart",
- "confidence": 0.757
}
], - "pur:expirationDate": "2023-04-17T06:31:07.174Z"
}
}
}
Event triggered when an asset import operation is completed in AEM.
id required | string non-empty An identifier for the event. When used in combination with the |
source required | string <uri> non-empty ^acct:aem(-cmstg)?-p\d+-e\d+@adobe\.com$ An instance of the acct URI scheme that uniquely identifies the
producer of this event, of the format |
specversion required | string >= 3 characters The version of the CloudEvents specification which the event uses. AEM events use the CloudEvents spec version 1.0.2, hence this value will be 1.0. |
type required | string >= 4 characters ^aem\..*$ The type for the event. This will identify the AEM solution that has dispatched the event and may also include the type of entity and the activity that occurred. |
datacontenttype required | string non-empty The format of the data in the event. This will always be |
dataschema | string <uri> An optional attribute, which may point to a JSON schema document that covers the data object. |
time required | string <date-time> non-empty A timestamp of when the event occurred. |
required | object The event payload. |
Asset import completed event data is received successfully
{- "specversion": "1.0",
- "type": "aem.assets.import.completed",
- "source": "acct:aem-p12345-e12345@adobe.com",
- "id": "ffa69f14-4f78-11ed-bdc3-0242ac129992",
- "time": "2024-08-12T15:29:00Z",
- "datacontenttype": "application/json",
- "data": {
- "jobId": "45a44ed7-f823-4a4c-896c-02b340ee87f0",
- "startTime": "2025-01-01T00:00:00Z",
- "endTime": "2025-01-01T00:01:00.11Z",
- "operation": "aem.assets.import.fromurl",
- "status": "completed",
}
}
Returns headers, including an ETag for the specified asset metadata, which can be a lighter method of checking for the existence of, or validating a cached version of an asset's metadata without sending a full GET request.
OK
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Forbidden
Not Found
Unacceptable. Indicates that the target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request.
{- "title": "Bad Request",
- "status": 400,
- "detail": "Bad request, please check that you have provided the correct parameters and that they are valid."
}
Asset metadata contains those metadata values that have been extracted from the asset, configured by the user, or derived from the asset during asset processing. Repository metadata contains metadata properties that are set and maintained by the repository during system operations.
If-None-Match | string The For more details, please head over to RFC9110. |
Metadata for the specified asset
Not Modified
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Forbidden
Not Found
Unacceptable. Indicates that the target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request.
{- "value": {
- "assetId": "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456",
- "assetMetadata": {
- "xcm:keywords": [
- {
- "value": "Asset Properties : Orientation / Square",
- "@lang": "ENGLISH",
- "repo:ancestors": [
- "properties",
- "orientation",
- "square"
]
}
], - "xcm:machineKeywords": [
- {
- "value": "city",
- "confidence": 0.8512217998504639,
- "localeCode": "en-US"
}
], - "dc:creator": [
- "Photo Author"
], - "dc:description": "This is a view of a city skyline reflected in a body of water",
- "dc:title": "City skyline",
- "exif:GPSLatitude": "43,19.11N",
- "exif:GPSLongitude": "11,19.84E",
- "photoshop:ColorMode": 3,
- "photoshop:DateCreated": "2017-10-24T12:28:31.672Z",
- "tiff:BitsPerSample": [
- 8,
- 8,
- 8
], - "tiff:Orientation": 1,
- "xmp:CreateDate": "2016-08-09T00:00:00.000Z",
- "xmp:CreatorTool": "Adobe Photoshop CC 2019 (Macintosh)",
- "xmp:ModifyDate": "2019-11-21T22:02:22.000Z"
}, - "repositoryMetadata": {
- "aem:assetState": "processed",
- "aem:checkedOutBy": "testuser@test.com",
- "dam:sha1": "8601cc48d27d85ae274c954286edfde34b907e12",
- "dc:format": "image/jpeg",
- "repo:createDate": "2023-04-14T06:31:07.174Z",
- "repo:createdBy": "user@adobe.com",
- "repo:modifiedBy": "dam-writer-service",
- "repo:modifyDate": "2023-04-15T05:01:44.229Z",
- "repo:name": "city.jpeg",
- "repo:path": "/content/dam/city.jpeg",
- "repo:size": 338049,
- "repo:version": "oak:1.0::ci:y7ngaf96th56jt62awk8xkoa37c572fe",
- "tiff:imageLength": 780,
- "tiff:imageWidth": 1000,
- "repo:repositoryId": "author-p12345-e123456.adobeaemcloud.com",
- "repo:ancestors": [
- "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456"
], - "repo:state": "ACTIVE",
- "aem:published": "2023-04-22T23:26:09.036Z"
}
}
}
The specified properties will be updated per the RFC-6902 syntax. Note that while assetMetadata is editable, repositoryMetadata is not. If both types are supplied in the request, the assetMetadata properties will be updated and a 200 response will be returned with the failed repositoryMetadata properties listed in the response body.
If-Match required | string The For more details, please head over to RFC9110. |
Patch applied
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Forbidden
Not Found
Unacceptable. Indicates that the target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request.
Conflict
Precondition Failed
Precondition Required
[- {
- "op": "test",
- "path": "/dc:title",
- "value": "old value"
}, - {
- "op": "replace",
- "path": "/dc:title",
- "value": "new value"
}, - {
- "op": "copy",
- "from": "/dc:title",
- "path": "/custom:title"
}
]
{- "value": {
- "assetId": "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456",
- "assetMetadata": {
- "xcm:keywords": [
- {
- "value": "Asset Properties : Orientation / Square",
- "@lang": "ENGLISH",
- "repo:ancestors": [
- "properties",
- "orientation",
- "square"
]
}
], - "xcm:machineKeywords": [
- {
- "value": "city",
- "confidence": 0.8512217998504639,
- "localeCode": "en-US"
}
], - "dc:creator": [
- "Photo Author"
], - "dc:description": "This is a view of a city skyline reflected in a body of water",
- "dc:title": "City skyline",
- "exif:GPSLatitude": "43,19.11N",
- "exif:GPSLongitude": "11,19.84E",
- "photoshop:ColorMode": 3,
- "photoshop:DateCreated": "2017-10-24T12:28:31.672Z",
- "tiff:BitsPerSample": [
- 8,
- 8,
- 8
], - "tiff:Orientation": 1,
- "xmp:CreateDate": "2016-08-09T00:00:00.000Z",
- "xmp:CreatorTool": "Adobe Photoshop CC 2019 (Macintosh)",
- "xmp:ModifyDate": "2019-11-21T22:02:22.000Z"
}, - "repositoryMetadata": {
- "aem:assetState": "processed",
- "aem:checkedOutBy": "testuser@test.com",
- "dam:sha1": "8601cc48d27d85ae274c954286edfde34b907e12",
- "dc:format": "image/jpeg",
- "repo:createDate": "2023-04-14T06:31:07.174Z",
- "repo:createdBy": "user@adobe.com",
- "repo:modifiedBy": "dam-writer-service",
- "repo:modifyDate": "2023-04-15T05:01:44.229Z",
- "repo:name": "city.jpeg",
- "repo:path": "/content/dam/city.jpeg",
- "repo:size": 338049,
- "repo:version": "oak:1.0::ci:y7ngaf96th56jt62awk8xkoa37c572fe",
- "tiff:imageLength": 780,
- "tiff:imageWidth": 1000,
- "repo:repositoryId": "author-p12345-e123456.adobeaemcloud.com",
- "repo:ancestors": [
- "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456"
], - "repo:state": "ACTIVE",
- "aem:published": "2023-04-22T23:26:09.036Z"
}
}
}
Imports the binary found at the specified URL into AEM as an Asset. While we have successfully tested imports with file sizes up to 20GB from common cloud storage providers, your results may vary based on the throughput provided by the source from which the assets are being imported.
The request body for importing one or more Assets from a URL. The request body contains the metadata for the assets to be imported and the URLs and descriptive data for the URLs to import.
The response for an accepted import request. The path provided in the Location header can be followed to monitor the import's progress.
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Forbidden
{- "assetMetadata": {
- "dc:title": "My Asset",
- "xmp:Rating": 5,
- "prism:expirationDate": "2019-01-01T00:00:00.000Z"
}, - "folder": "urn:aaid:aem:8964ca64-b302-5abe-88db-e1729385287b",
- "files": [
- {
- "fileName": "My-Asset.jpeg",
- "assetMetadata": {
- "custom:test": "custom-metadata"
}, - "mimeType": "image/jpeg",
- "fileSize": 123456,
}
]
}
{- "id": "c82f6f05-07e3-5d13-b6bf-be0ac408fddf",
- "operation": "aem.assets.import.fromurl",
- "data": {
- "id": "c82f6f05-07e3-5d13-b6bf-be0ac408fddf",
- "config": {
- "assetMetadata": {
- "dc:title": "My Asset",
- "xmp:Rating": 5,
- "prism:expirationDate": "2019-01-01T00:00:00.000Z"
}, - "folder": "urn:aaid:aem:8964ca64-b302-5abe-88db-e1729385287b",
}, - "processedFiles": [ ],
- "progress": {
- "imported": 0,
- "failed": 0,
- "skipped": 0,
- "started": "2025-03-24T18:23:15.885Z",
- "total": 2,
- "lastUpdated": "2025-03-24T18:23:15.885Z",
- "size": 0,
- "transferred": 0,
- "step": "QUEUED"
}
}, - "errors": [ ],
- "warnings": [ ],
- "state": "PROCESSING"
}
Returns headers, including an ETag for the specified import job status, which can be used to check for the existence of, or validate a cached version of the import job status without sending a full GET request.
OK
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Forbidden
Not Found
{- "title": "Bad Request",
- "status": 400,
- "detail": "Bad request, please check that you have provided the correct parameters and that they are valid."
}
Retrieves the status of the specified import job. If the job is in progress, the response will have a status of 200 and include a Retry-After header with the number of seconds to wait before checking the status again. If the job is complete, the response will have a status of 200 and the response body will include the final status of the job.
If-None-Match | string The For more details, please head over to RFC9110. |
A response describing the status of an import job
Not Modified
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Forbidden
Not Found
{- "id": "B79F5F05-06E2-4D12-A5AE-AD9BC308FCCF",
- "description": "OK",
- "operation": "aem.assets.import.fromurl",
- "status": 200,
- "state": "PROCESSING",
- "progress": {
- "imported": 1,
- "failed": 1,
- "skipped": 0,
- "started": "2019-01-01T00:00:00.000Z",
- "total": 2,
- "lastUpdated": "2019-01-01T00:00:00.000Z",
- "size": 123456,
- "transferred": 2345,
- "step": "IMPORTING"
}, - "errors": [ ],
- "warnings": [ ]
}
Returns headers, including an ETag for the specified import job result, which can be used to check for the existence of, or validate a cached version of the import job result without sending a full GET request.
OK
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Forbidden
Not Found
{- "title": "Bad Request",
- "status": 400,
- "detail": "Bad request, please check that you have provided the correct parameters and that they are valid."
}
Retrieves the Result of the specified import job.
If-None-Match | string The For more details, please head over to RFC9110. |
A response describing the result of an import job
Not Modified
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Forbidden
Not Found
{- "cursor": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtc2ciOiJZb3UgdGhvdWdodCB0aGlzIG1pZ2h0IGJlIHNvbWV0aGluZyBzZWNyZXQsIHJpZ2h0PyJ9.7xLHh_QS1f6oNd5oy5pXUBjDSQ-brOjBXxLbRDzOXAs",
- "items": [
- {
- "fileName": "000000089948.png",
- "mimeType": "image/png",
- "fileSize": 150000,
- "status": "imported",
- "assetId": "urn:aaid:aem:a1b2c3d4-e5f6-7g8h-9i0j-k1l2m3n4o5p6"
}, - {
- "fileName": "neom-ne3RC_Q9UEA-unsplash.jpg",
- "mimeType": "image/jpeg",
- "fileSize": 324629,
- "status": "failed",
- "error": {
- "title": "Not Found",
- "status": 404,
- "detail": "Could not import file neom-ne3RC_Q9UEA-unsplash.jpg, failed to preprocess: Failed to get download url for id:QqZmUXw658QAAAAAAAAGrw, not found"
}
}
]
}
Get a paginated list of all relations for an asset, optionally filtered by relation types. If the relationTypes
parameter is provided, only relations for the provided type name(s) will be returned. By default, the response will contain a maximum of 50 items per page. The caller may pass the limit
query parameter to override this default with a lower limit. To request the next page of items, pass the cursor
value provided in the response to the cursor
query parameter.
If-None-Match | string The For more details, please head over to RFC9110. |
Paginated list of relations for the given asset or an empty list if the asset has no relations.
Not Modified
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Not Found
Unacceptable. Indicates that the target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request.
The server encountered an unexpected error. Retrying the request after a certain time could help.
{- "items": [
- {
- "assetId": "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456",
- "relationType": "sources",
- "repo:path": "/content/dam/test/document.pdf",
- "repo:name": "document.pdf"
}, - {
- "assetId": "urn:aaid:aem:1a034bee-ebda-4787-bad3-f924d0772b75",
- "relationType": "derived",
- "repo:path": "/content/dam/test/image.png",
- "repo:name": "image.png"
}
], - "cursor": "wqeaszrdxtgfcyguiohfgytdrsewq"
}
Create new asset relations for the given asset. Each asset relation object in the request must include the ID of the related asset and the relation type.
Asset relations created successfully.
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Forbidden
Not Found
Unacceptable. Indicates that the target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request.
Unsupported Media Type. When provided as a response to a PATCH
request,
the response will provide an Accept-Patch
response header to notify
the client what patch document media types are supported.
The server encountered an unexpected error. Retrying the request after a certain time could help.
{- "items": [
- {
- "assetId": "urn:aaid:aem:1a034bee-ebda-4787-bad3-f924d0772b75",
- "relationType": "sources"
}
]
}
{- "title": "Bad Request",
- "status": 400,
- "detail": "Bad request, please check that you have provided the correct parameters and that they are valid."
}
Get a paginated list of relations for an asset filtered by a relation type. Only relations for the provided type name will be returned. By default, the response will contain a maximum of 50 items per page. The caller may pass the limit
query parameter to override this default with a lower limit. To request the next page of items, pass the cursor
value provided in the response to the cursor
query parameter.
If-None-Match | string The For more details, please head over to RFC9110. |
Paginated list of relations for the given asset and relation type or an empty list if the asset has no relations for the relation type.
Not Modified
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Not Found
Unacceptable. Indicates that the target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request.
The server encountered an unexpected error. Retrying the request after a certain time could help.
{- "items": [
- {
- "assetId": "urn:aaid:aem:abcd1234-ab12-ab12-ab12-abcdef123456",
- "relationType": "sources",
- "repo:path": "/content/dam/test/document.pdf",
- "repo:name": "document.pdf"
}, - {
- "assetId": "urn:aaid:aem:1a034bee-ebda-4787-bad3-f924d0772b75",
- "relationType": "derived",
- "repo:path": "/content/dam/test/image.png",
- "repo:name": "image.png"
}
], - "cursor": "wqeaszrdxtgfcyguiohfgytdrsewq"
}
Delete all asset relations of type relationType
for the asset corresponding to the given assetId
parameter.
No Content
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Forbidden
Not Found
Unacceptable. Indicates that the target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request.
The server encountered an unexpected error. Retrying the request after a certain time could help.
{- "title": "Bad Request",
- "status": 400,
- "detail": "Bad request, please check that you have provided the correct parameters and that they are valid."
}
Delete an asset relation for the asset corresponding to the given assetId
parameter. The relationType
and relatedAssetId
parameters must correspond to values from an existing asset relation returned by the getAssetRelations
operation for the asset.
No Content
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Forbidden
Not Found
Unacceptable. Indicates that the target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request.
The server encountered an unexpected error. Retrying the request after a certain time could help.
{- "title": "Bad Request",
- "status": 400,
- "detail": "Bad request, please check that you have provided the correct parameters and that they are valid."
}
Get a paginated list of relation type names that exist for the given asset. The values returned in this response can be used in the relationTypes
parameter for the getAssetRelations
operation. By default, the response will contain a maximum of 50 items per page. The caller may pass the limit
query parameter to override this default with a lower limit. To request the next page of items, pass the cursor
value provided in the response to the cursor
query parameter.
If-None-Match | string The For more details, please head over to RFC9110. |
Paginated list of relation type names for the given asset or an empty list if the asset has no relations.
Not Modified
Bad Request. The Problem Details object will provide more information about the exact cause.
Unauthorized
Not Found
Unacceptable. Indicates that the target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request.
The server encountered an unexpected error. Retrying the request after a certain time could help.
{- "items": [
- "sources",
- "derived",
- "others"
], - "cursor": "wqeaszrdxtgfcyguiohfgytdrsewq"
}