Skip to main content Help and docs Guides Integrating with other platforms Webhooks 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"eventId": "{{event.id}}",
"eventName": "{{event.name}}",
"subscriptionId": "{{event.subscriptionId}}",
"datetime": "{{event.dateTime | date.to_string '%Y-%m-%dT%H:%M:%S.%LZ'}}",
"invokedBy": {
"username": "{{user.username}}",
"firstName": "{{user.firstName}}",
"lastName": "{{user.lastName}}"
},
"resource": {
"id": "{{event.resourceId}}",
"type": "entry",
"projectId": "{{resource.sys.projectId}}",
"contentTypeId": "{{resource.sys.contentTypeId}}",
"title": "{{resource.entryTitle}}",
"language": "{{resource.sys.language}}",
"url": "{{event.resourceUrl}}"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"text": "{{resource.entryTitle}} has been {{event.name}}",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "{% assign handle = event.name %} {% case handle %} {% when "workflowStateChanged" %}:page_with_curl: An entry has been transitioned to the {{resource.sys.workflow.state}} workflow state.{% else %}:page_with_curl: An entry has been {{event.name}}{% endcase %}",
"emoji": true
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Entry title:*\n<https://cms-{{event.alias}}.cloud.contensis.com/app/projects/{{resource.sys.projectId}}/entries/{{resource.sys.id}}?language={{resource.sys.language}}>\n\n{% if resource.entryDescription %}*Entry description:*\n {{resource.entryDescription}}{% endif %}"
}
},
{
"type": "divider"
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Content type:*\n{{resource.sys.contentTypeId}}"
},
{
"type": "mrkdwn",
"text": "*Last updated:*\n{{event.dateTime | date.to_string "%Y-%m-%d at %H:%M"}}"
},
{
"type": "mrkdwn",
"text": "*Updated by:*\n{{resource.sys.version.modifiedBy}}"
},
{
"type": "mrkdwn",
"text": "*Entry ID:*\n{{resource.sys.id}}"
}
]
},
{
"type": "divider"
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": ":pencil2: Edit entry",
"emoji": true
},
"value": "edit_entry",
"url": "https://cms-{{event.alias}}.cloud.contensis.com/app/projects/{{resource.sys.projectId}}/entries/{{resource.sys.id}}?language={{resource.sys.language}}"
}
]
}
]
}
1
2
3
{% if resource.entryDescription %}
*Entry description:* {{resource.entryDescription}}
{% endif %}
1
{% if resource.entryDescription %}*Entry description:* {{resource.entryDescription}}{% endif %}
1
2
3
4
5
6
7
{% assign handle = event.name %}
{% case handle %}
{% when "workflowStateChanged" %}
An entry has been transitioned to the {{ resource.sys.workflow.state }} workflow state.
{% else %}
An entry has been {{ event.name }}
{% endcase %}
1
{% assign handle = event.name %} {% case handle %} {% when "workflowStateChanged" %}An entry has been transitioned to the {{ resource.sys.workflow.state }} workflow state.{% else %}An entry has been {{ event.name }}{% endcase %}
1
{{ resource | to_json }}
1
{{ resource.somefield | to_xml }}