Skip to content

Commit e746605

Browse files
committed
fix: update webhook payload casing
- change was introduced in v14 from camel to pascal case
1 parent bce2db1 commit e746605

File tree

3 files changed

+36
-36
lines changed

3 files changed

+36
-36
lines changed

14/umbraco-cms/reference/webhooks/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,27 +52,27 @@ For example, the `Content Published` event sends the specific content that trigg
5252

5353
```json
5454
{
55-
"Name": "Root",
56-
"CreateDate": "2023-12-11T12:02:38.9979314",
57-
"UpdateDate": "2023-12-11T12:02:38.9979314",
58-
"Route": {
59-
"Path": "/",
60-
"StartItem": {
61-
"Id": "c1922956-7855-4fa0-8f2c-7af149a92135",
62-
"Path": "root"
55+
"name": "Root",
56+
"createDate": "2023-12-11T12:02:38.9979314",
57+
"updateDate": "2023-12-11T12:02:38.9979314",
58+
"route": {
59+
"path": "/",
60+
"startItem": {
61+
"id": "c1922956-7855-4fa0-8f2c-7af149a92135",
62+
"path": "root"
6363
}
6464
},
65-
"Id": "c1922956-7855-4fa0-8f2c-7af149a92135",
66-
"ContentType": "root",
67-
"Properties": {}
65+
"id": "c1922956-7855-4fa0-8f2c-7af149a92135",
66+
"contentType": "root",
67+
"properties": {}
6868
}
6969
```
7070

7171
However, the `Content deleted` does not send the entire content as JSON, instead, it sends the `Id` of the content:
7272

7373
```json
7474
{
75-
"Id": "c1922956-7855-4fa0-8f2c-7af149a92135"
75+
"id": "c1922956-7855-4fa0-8f2c-7af149a92135"
7676
}
7777
```
7878

15/umbraco-cms/reference/webhooks/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,27 @@ Each webhook event sends a JSON payload. For example, the `Content Published` ev
5656

5757
```json
5858
{
59-
"Name": "Root",
60-
"CreateDate": "2023-12-11T12:02:38.9979314",
61-
"UpdateDate": "2023-12-11T12:02:38.9979314",
62-
"Route": {
63-
"Path": "/",
64-
"StartItem": {
65-
"Id": "c1922956-7855-4fa0-8f2c-7af149a92135",
66-
"Path": "root"
59+
"name": "Root",
60+
"createDate": "2023-12-11T12:02:38.9979314",
61+
"updateDate": "2023-12-11T12:02:38.9979314",
62+
"route": {
63+
"path": "/",
64+
"startItem": {
65+
"id": "c1922956-7855-4fa0-8f2c-7af149a92135",
66+
"path": "root"
6767
}
6868
},
69-
"Id": "c1922956-7855-4fa0-8f2c-7af149a92135",
70-
"ContentType": "root",
71-
"Properties": {}
69+
"id": "c1922956-7855-4fa0-8f2c-7af149a92135",
70+
"contentType": "root",
71+
"properties": {}
7272
}
7373
```
7474

7575
The `Content Deleted` event sends only the content ID:
7676

7777
```json
7878
{
79-
"Id": "c1922956-7855-4fa0-8f2c-7af149a92135"
79+
"id": "c1922956-7855-4fa0-8f2c-7af149a92135"
8080
}
8181
```
8282

16/umbraco-cms/reference/webhooks/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,27 @@ Each webhook event sends a JSON payload. For example, the `Content Published` ev
5656

5757
```json
5858
{
59-
"Name": "Root",
60-
"CreateDate": "2023-12-11T12:02:38.9979314",
61-
"UpdateDate": "2023-12-11T12:02:38.9979314",
62-
"Route": {
63-
"Path": "/",
64-
"StartItem": {
65-
"Id": "c1922956-7855-4fa0-8f2c-7af149a92135",
66-
"Path": "root"
59+
"name": "Root",
60+
"createDate": "2023-12-11T12:02:38.9979314",
61+
"updateDate": "2023-12-11T12:02:38.9979314",
62+
"route": {
63+
"path": "/",
64+
"startItem": {
65+
"id": "c1922956-7855-4fa0-8f2c-7af149a92135",
66+
"path": "root"
6767
}
6868
},
69-
"Id": "c1922956-7855-4fa0-8f2c-7af149a92135",
70-
"ContentType": "root",
71-
"Properties": {}
69+
"id": "c1922956-7855-4fa0-8f2c-7af149a92135",
70+
"contentType": "root",
71+
"properties": {}
7272
}
7373
```
7474

7575
The `Content Deleted` event sends only the content ID:
7676

7777
```json
7878
{
79-
"Id": "c1922956-7855-4fa0-8f2c-7af149a92135"
79+
"id": "c1922956-7855-4fa0-8f2c-7af149a92135"
8080
}
8181
```
8282

0 commit comments

Comments
 (0)