I’m almost certain this is the answer. You might need to save your scenario and switch off/on your scenario schedule.
Also, I did not need to set any custom headers.
You can test this in a new scenario:
Module Export
You can copy and paste this module export into your scenario. This will paste the modules shown in my screenshots above.
-
Copy the JSON code below by clicking the copy button when you mouseover the top-right of the code block
-
Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the canvas.
-
Click on each imported module and save it for validation. You may be prompted to remap some variables and connections.
JSON
{
"subflows": [
{
"flow": [
{
"id": 147,
"module": "gateway:CustomWebHook",
"version": 1,
"parameters": {
"hook": 512783,
"maxResults": 1
},
"mapper": {},
"metadata": {
"designer": {
"x": -832,
"y": -4015,
"messages": [
{
"category": "link",
"severity": "warning",
"message": "A trigger must be the first module in a scenario."
}
]
},
"restore": {
"parameters": {
"hook": {
"label": "My temp webhook",
"data": {
"editable": "true"
}
}
}
},
"parameters": [
{
"name": "hook",
"type": "hook:gateway-webhook",
"label": "Webhook",
"required": true
},
{
"name": "maxResults",
"type": "number",
"label": "Maximum number of results"
}
]
}
},
{
"id": 148,
"module": "gateway:WebhookRespond",
"version": 1,
"parameters": {},
"mapper": {
"status": "200",
"body": "{{emptystring}}",
"headers": []
},
"metadata": {
"designer": {
"x": -582,
"y": -4015
},
"restore": {
"expect": {
"headers": {
"mode": "chose"
}
}
},
"expect": [
{
"name": "status",
"type": "uinteger",
"label": "Status",
"validate": {
"min": 100
},
"required": true
},
{
"name": "body",
"type": "any",
"label": "Body"
},
{
"name": "headers",
"type": "array",
"label": "Custom headers",
"validate": {
"maxItems": 16
},
"spec": [
{
"name": "key",
"label": "Key",
"type": "text",
"required": true,
"validate": {
"max": 256
}
},
{
"name": "value",
"label": "Value",
"type": "text",
"required": true,
"validate": {
"max": 4096
}
}
]
}
],
"advanced": true
}
}
]
}
],
"metadata": {
"version": 1
}
}