client.add_webhook

To create a webhook.

Input ParametersTypeDefaultDescription
namestrNoneA unique name for the webhook.
urlstrNoneThe webhook url used for sending notification messages.
providerstrNoneThe platform that provides webhooks functionality. Only ‘SLACK’ is supported.

client.add_webhook(
        name='range_violation_channel',
        url='https://hooks.slack.com/services/T9EAVLUQ5/P982J/G8ISUczk37hxQ15C28d',
        provider='SLACK')
)
Return TypeDescription
fdl.WebhookDetails of the webhook created.

Example responses:

Webhook(uuid='df2397d3-23a8-4eb3-987a-2fe43b758b08',
        name='range_violation_channel', organization_name='some_org_name',
        url='https://hooks.slack.com/services/T9EAVLUQ5/P982J/G8ISUczk37hxQ15C28d',
        provider='SLACK')