client.add_webhook

To create a webhook.

Input ParametersTypeDefaultDescription
namestrNoneA unique name for the webhook.
URLstrNoneThe webhook url is used for sending notification messages.
providerstrNoneThe platform 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')

📘

Add Slack webhook

Use the Slack API reference to generate a webhook for your Slack App