Create a Webhook.
Body
-
webhook name
-
set "https://dataflownode.zerionsoftware.com" for production Environment and "https://{{serverId}}-dataflownode.zerionsoftware.com" for a specific serverId if they do not share the same domain with production.
-
true for secured webhook, and false for insecured webhook
-
recordSet that connects to the webhook
-
created date
-
webhook name
-
webhook URL
-
if secureWebhook is included, the returns will contain a public key for the webhook signature
-
true if secureWebhook is included with true value, false for other cases
POST
/dataflows/{dataflowId}/recordsets/{recordSetId}/webhooks
curl \
--request POST 'https://dataflownode.zerionsoftware.com/zcrypt/v1.0/dataflows/{dataflowId}/recordsets/{recordSetId}/webhooks' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '
"webhookName" : "new_webhook_name",
"requestedServer" : "https://dataflownode.zerionsoftware.com",
"secureWebhook" : true'
Request example
"webhookName" : "new_webhook_name",
"requestedServer" : "https://dataflownode.zerionsoftware.com",
"secureWebhook" : true
Response examples (200)
{
"recordSetId": "574bc94ed96535adaf730a62",
"webhookName": "wh_rs4",
"requestedDate": "2016-05-30T05:18:28.352Z",
"_id": "574bcd24d96535adaf730a63",
"webhookUrl": "{{serverId}}/domain/development/services/webhooks/xxxxxxxx-xxxxxxxx"
}