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));
  • Parameters

    • environment: string

      Environment name: https://{{environment}}.bloomreach.io

    • xAuthToken: string

      BrX API Token

    • configuration: WebhookConfiguration

      Webhook Configuration Data

    Returns AxiosPromise