You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 16/umbraco-cms/reference/webhooks/README.md
+44-17Lines changed: 44 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,31 +52,58 @@ Umbraco webhooks come with predefined settings and behaviors.
52
52
53
53
### JSON Payload
54
54
55
-
Each webhook event sends a JSON payload. For example, the `Content Published` event includes full content details:
55
+
Each webhook event sends a JSON payload. The following types of payloads are available by default.
56
56
57
-
```json
57
+
#### Legacy
58
+
59
+
This is the current default but will be removed in a future version. Legacy payloads follow the format used before version 16. They are inconsistent and may include data that should not be exposed or has been superseded (e.g., use of `int` instead of `Guid`).
60
+
#### Minimal
61
+
62
+
This will become the default in version 17 and later. Minimal payloads include only essential information to identify the resource. For most events, this means a unique identifier. Some events may include additional data. For example, a document publish event also includes the list of published cultures.
63
+
#### Extended
64
+
65
+
Extended payloads include all relevant information for an event, where available. However, sensitive data, such as usernames, member names, or email addresses, is excluded for privacy and security reasons. If an extended payload is not available for an event, the system falls back to the minimal payload.
66
+
67
+
### Configuring Payload Types
68
+
69
+
Payload type can be configured in the following ways:
70
+
71
+
- Changing the appsetting `Umbraco:CMS:Webhook:PayloadType`. Be aware that the system that uses this value runs before any composers. If you manipulate the `WebhookEventCollectionBuilder` in any way, then those methods will not automatically pick up this app setting.
72
+
- Passing in the PayloadType into the `WebhookEventCollectionBuilderExtensions` methods to control which webhook events are added.
73
+
74
+
```csharp
75
+
usingUmbraco.Cms.Core.Composing;
76
+
usingUmbraco.Cms.Core.Webhooks;
77
+
78
+
namespaceUmbraco.Cms.Web.UI.Composers;
79
+
80
+
// this composer clears all registered webhooks and then adds all (umbraco provided) webhooks with their extended payloads
0 commit comments