To update a webhook, by changing name, url or provider.
Input Parameters | Type | Default | Description |
---|---|---|---|
name | str | None | A unique name for the webhook. |
url | str | None | The webhook url used for sending notification messages. |
provider | str | None | The platform that provides webhooks functionality. Only ‘SLACK’ is supported. |
uuid | str | None | The unique system generated identifier for the webook. |
client.update_webhook(uuid='e20bf4cc-d2cf-4540-baef-d96913b14f1b',
name='drift_violation',
url='https://hooks.slack.com/services/T9EAVLUQ5/P982J/G8ISUczk37hxQ15C28d',
provider='SLACK')
Return Type | Description |
---|---|
fdl.Webhook | Details of Webhook after modification. |
Example Response:
Webhook(uuid='e20bf4cc-d2cf-4540-baef-d96913b14f1b',
name='drift_violation', organization_name='some_org_name',
url='https://hooks.slack.com/services/T9EAVLUQ5/P982J/G8ISUczk37hxQ15C28d',
provider='SLACK')