Creates a Webhook Configuration
createWebhookConfiguration(environment, xAuthToken, 'Webhook Example', true, 'https://example.com/api/webhooks', 'POST', ['document:publish']) .then(response => console.log(response.data)) .catch(error => console.error(error)); Copy
createWebhookConfiguration(environment, xAuthToken, 'Webhook Example', true, 'https://example.com/api/webhooks', 'POST', ['document:publish']) .then(response => console.log(response.data)) .catch(error => console.error(error));
Environment name: https://{{environment}}.bloomreach.io
BrX API Token
Webhook Configuration Data
Creates a Webhook Configuration
Example