A number of events are emitted for content state updates and content changes for Content Fragments. For more details about how these events can be handled, please head over to the Adobe I/O Events Documentation linked below.
An aem.sites.contentFragment.created
event will be triggered when a new Content Fragment is created on the server.
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 (ContentFragmentCreatedEventData) The event payload. |
Return a 200 status to indicate that the data was received successfully
{- "specversion": 1,
- "type": "aem.sites.contentFragment.created",
- "source": "acct:aem-p56789-e12345@adobe.com",
- "id": "7c1104e5-4cd7-47d6-a50f-2568c480f2e9",
- "time": "2018-04-05T17:31:00Z",
- "datacontenttype": "application/json",
- "data": {
- "user": {
- "imsUserId": "string",
- "principalId": "string",
- "displayName": "string"
}, - "path": "string",
- "model": {
- "id": "L2NvbmYvZ2xvYmFsL3NldHRpbmdzL2RhbS9jZm0vbW9kZWxzL2Etc2ltcGxlLWNmbQ",
- "path": "/conf/global/settings/dam/cfm/models/a-simple-cfm"
}, - "id": "49af775d-0e7a-46c3-913d-00f762528373"
}
}
An aem.sites.contentFragment.modified
event will be triggered when a Content Fragment is modified on the server.
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 (ContentFragmentModifiedEventData) The event payload. |
Return a 200 status to indicate that the data was received successfully
{- "specversion": 1,
- "type": "aem.sites.contentFragment.modified",
- "source": "acct:aem-p56789-e12345@adobe.com",
- "id": "7c1104e5-4cd7-47d6-a50f-2568c480f2e9",
- "time": "2018-04-05T17:31:00Z",
- "datacontenttype": "application/json",
- "data": {
- "user": {
- "imsUserId": "string",
- "principalId": "string",
- "displayName": "string"
}, - "path": "string",
- "model": {
- "id": "L2NvbmYvZ2xvYmFsL3NldHRpbmdzL2RhbS9jZm0vbW9kZWxzL2Etc2ltcGxlLWNmbQ",
- "path": "/conf/global/settings/dam/cfm/models/a-simple-cfm"
}, - "id": "49af775d-0e7a-46c3-913d-00f762528373",
- "properties": [
- {
- "name": "string",
- "changeType": "added"
}
]
}
}
An aem.sites.contentFragment.deleted
event will be triggered when a Content Fragment is deleted on the server.
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 (ContentFragmentDeletedEventData) The event payload. |
Return a 200 status to indicate that the data was received successfully
{- "specversion": 1,
- "type": "aem.sites.contentFragment.deleted",
- "source": "acct:aem-p56789-e12345@adobe.com",
- "id": "7c1104e5-4cd7-47d6-a50f-2568c480f2e9",
- "time": "2018-04-05T17:31:00Z",
- "datacontenttype": "application/json",
- "data": {
- "user": {
- "imsUserId": "string",
- "principalId": "string",
- "displayName": "string"
}, - "path": "string",
- "model": {
- "id": "L2NvbmYvZ2xvYmFsL3NldHRpbmdzL2RhbS9jZm0vbW9kZWxzL2Etc2ltcGxlLWNmbQ",
- "path": "/conf/global/settings/dam/cfm/models/a-simple-cfm"
}, - "id": "49af775d-0e7a-46c3-913d-00f762528373"
}
}
An aem.sites.contentFragment.moved
event will be triggered when a Content Fragment is moved on the server.
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 (ContentFragmentMovedEventData) The event payload. |
Return a 200 status to indicate that the data was received successfully
{- "specversion": 1,
- "type": "aem.sites.contentFragment.moved",
- "source": "acct:aem-p56789-e12345@adobe.com",
- "id": "7c1104e5-4cd7-47d6-a50f-2568c480f2e9",
- "time": "2018-04-05T17:31:00Z",
- "datacontenttype": "application/json",
- "data": {
- "user": {
- "imsUserId": "string",
- "principalId": "string",
- "displayName": "string"
}, - "path": "string",
- "model": {
- "id": "L2NvbmYvZ2xvYmFsL3NldHRpbmdzL2RhbS9jZm0vbW9kZWxzL2Etc2ltcGxlLWNmbQ",
- "path": "/conf/global/settings/dam/cfm/models/a-simple-cfm"
}, - "id": "49af775d-0e7a-46c3-913d-00f762528373",
- "oldPath": "string"
}
}
An aem.sites.contentFragment.published
event will be triggered when a Content Fragment is replicated to the publish tier.
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 (ContentFragmentPublishedEventData) The event payload. |
Return a 200 status to indicate that the data was received successfully
{- "specversion": 1,
- "type": "aem.sites.contentFragment.published",
- "source": "acct:aem-p56789-e12345@adobe.com",
- "id": "7c1104e5-4cd7-47d6-a50f-2568c480f2e9",
- "time": "2018-04-05T17:31:00Z",
- "datacontenttype": "application/json",
- "data": {
- "user": {
- "imsUserId": "string",
- "principalId": "string",
- "displayName": "string"
}, - "path": "string",
- "model": {
- "id": "L2NvbmYvZ2xvYmFsL3NldHRpbmdzL2RhbS9jZm0vbW9kZWxzL2Etc2ltcGxlLWNmbQ",
- "path": "/conf/global/settings/dam/cfm/models/a-simple-cfm"
}, - "id": "49af775d-0e7a-46c3-913d-00f762528373",
- "tier": "publish"
}
}
An aem.sites.contentFragment.unpublished
event will be triggered when a Content Fragment is removed from the publish tier.
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 (ContentFragmentUnpublishedEventData) The event payload. |
Return a 200 status to indicate that the data was received successfully
{- "specversion": 1,
- "type": "aem.sites.contentFragment.published",
- "source": "acct:aem-p56789-e12345@adobe.com",
- "id": "7c1104e5-4cd7-47d6-a50f-2568c480f2e9",
- "time": "2018-04-05T17:31:00Z",
- "datacontenttype": "application/json",
- "data": {
- "user": {
- "imsUserId": "string",
- "principalId": "string",
- "displayName": "string"
}, - "path": "string",
- "model": {
- "id": "L2NvbmYvZ2xvYmFsL3NldHRpbmdzL2RhbS9jZm0vbW9kZWxzL2Etc2ltcGxlLWNmbQ",
- "path": "/conf/global/settings/dam/cfm/models/a-simple-cfm"
}, - "id": "49af775d-0e7a-46c3-913d-00f762528373",
- "tier": "publish"
}
}
An aem.sites.contentFragment.variation
event will be triggered when a Content Fragment Variation is added, modified or deleted on the server.
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 (ContentFragmentVariationEventData) The event payload. |
Return a 200 status to indicate that the data was received successfully
{- "specversion": 1,
- "type": "aem.sites.contentFragment.variation",
- "source": "acct:aem-p56789-e12345@adobe.com",
- "id": "7c1104e5-4cd7-47d6-a50f-2568c480f2e9",
- "time": "2018-04-05T17:31:00Z",
- "datacontenttype": "application/json",
- "data": {
- "user": {
- "imsUserId": "string",
- "principalId": "string",
- "displayName": "string"
}, - "path": "string",
- "model": {
- "id": "L2NvbmYvZ2xvYmFsL3NldHRpbmdzL2RhbS9jZm0vbW9kZWxzL2Etc2ltcGxlLWNmbQ",
- "path": "/conf/global/settings/dam/cfm/models/a-simple-cfm"
}, - "id": "49af775d-0e7a-46c3-913d-00f762528373",
- "properties": [
- {
- "name": "string",
- "changeType": "added"
}
], - "variationName": "string",
- "changeSubType": "variation.added"
}
}