forked from adobe/xdm
/
callwebhook.schema.json
66 lines (66 loc) · 2.22 KB
/
callwebhook.schema.json
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
63
64
65
66
{
"meta:license": [
"Copyright 2022 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/xdm/mixins/events/callwebhook",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Call Webhook",
"type": "object",
"meta:tags": {
"b2bSchema": true
},
"meta:conditionalField": "xdm:eventType",
"meta:conditionalValue": "leadOperation.callWebhook",
"meta:intendedToExtend": [
"https://ns.adobe.com/xdm/context/experienceevent"
],
"description": "Use to capture details when Webhook is called for a person",
"definitions": {
"callwebhook": {
"properties": {
"xdm:leadOperation": {
"title": "Lead Operation",
"type": "object",
"properties": {
"xdm:callWebhook": {
"title": "Call Webhook",
"type": "object",
"properties": {
"xdm:webhookID": {
"title": "Webhook ID (deprecated)",
"type": "string",
"description": "Webhook ID is going to depreciate soon. Please use Webhook Key."
},
"xdm:webhookKey": {
"title": "Webhook Key",
"description": "Unique composite identifier of the Webhook.",
"$ref": "https://ns.adobe.com/xdm/datatypes/b2b-source"
},
"xdm:webhookName": {
"title": "Webhook Name",
"type": "string",
"description": "Name of the Webhook."
},
"xdm:responseCode": {
"title": "Response Code",
"type": "integer",
"description": "HTTP response code from Webhook request."
}
}
}
}
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/callwebhook"
}
],
"meta:status": "experimental",
"meta:createdDate": "2022-01-13"
}