SendWebhook
less than a minute
class SendWebhook
Defines an automation action that sends a webhook request.
method SendWebhook.__init__
__init__(
integration_id: 'str',
request_payload: 'Annotated | None' = None,
action_type: 'Literal[GENERIC_WEBHOOK]' = GENERIC_WEBHOOK
) → None
Args:
integration_id
(str): The ID of the webhook integration that will be used to send the request.request_payload
(Optional[Annotated]): The payload, possibly with template variables, to send in the webhook request.action_type
(Literal[GENERIC_WEBHOOK]):
Returns:
An SendWebhook
object.
classmethod SendWebhook.from_integration
from_integration(
integration: 'WebhookIntegration',
payload: 'Optional[SerializedToJson[dict[str, Any]]]' = None
) → Self
Define a webhook action that sends to the given (webhook) integration.
Feedback
Was this page helpful?
Glad to hear it! If you have more to say, please let us know.
Sorry to hear that. Please tell us how we can improve.