Create a Webhook.
Body
-
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
-
name for the new webhook
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 '"{\n \"requestedServer\": \"https://dataflownode.zerionsoftware.com\",\n \"secureWebhook\": true,\n \"webhookName\": \"new_webhook_name\"\n}"'
Request example
{
"requestedServer": "https://dataflownode.zerionsoftware.com",
"secureWebhook": true,
"webhookName": "new_webhook_name"
}
Response examples (200)
{
"_id": "574bcd24d96535adaf730a63",
"recordSetId": "574bc94ed96535adaf730a62",
"requestedDate": "2016-05-30 05:18:28 UTC",
"webhookName": "wh_rs4",
"webhookUrl": "{{serverId}}/domain/development/services/webhooks/ab6d48dd056c7f7a705b40d3c3b2b99b43695a1f-99e3d8c3044d3b35f264e5cda0f19eaad6c4e79d"
}