Webhook event handler HTTP request
This topic provides an overview of the properties in a webhook event handler request and displays a sample request.
Webhook event handler common properties
A webhook event handler request payload contains the following properties that identify the webhook item and the event that occurred:
| Property | Value type | Description |
|---|---|---|
| EventName | string | The event name in SitecoreAI. |
| WebhookItemId | GUID | The ID of the webhook item that subscribed to the event and was triggered. |
| WebhookItemName | string | The webhook item name. |
Event-specific properties
Each event contains event-specific properties. The following table describes the event-specific properties, with events that share identical properties grouped in the same row:
| EventName | Property | Value type | Description |
|---|---|---|---|
| item:addeditem:versionAddeditem:cloneAddeditem:lockeditem:unlockeditem:versionRemoveditem | Item | Item | The affected item. |
| item | Item | Item | The affected item. |
| ParentID | Guid | The parent ID of the removed item. | |
| item | Item | Item | The saved item. |
| Changes | ItemChanges | Information about the changes made to the item. | |
| item | Source | Item | The original item. |
| Copy | Item | The copy of the original item. | |
| item | Item | Item | The moved item. |
| OldParentID | Guid | The previous parent of the item. | |
| item | Item | Item | The renamed item. |
| OldName | string | The old name of the item. | |
| item | Item | Item | The affected item. |
| OldValue | string | The previous item sort order. | |
| item | Item | Item | The affected item. |
| TemplateChanges | TemplateChanges | Information about the changes made to the item's template. | |
| publish:beginpublish | PublisherOptions | PublisherOptions | The basic publish information. |
| publish | Status | StatusChanges | Publish progress information. |
| publish | PublisherOptions | PublisherOptions | The basic publish information. |
| Exception | Exception | Information about the exception that occurred during publish attempt. |
Sample webhook event handler request in JSON format
The following is an example of a webhook event handler request in JSON format, informing that an item was added:
If you have suggestions for improving this article, let us know!