Skip to main content

WebhookClient

apify_client.clients.WebhookClient

Sub-client for manipulating a single webhook.

Index

Methods

delete

  • delete(): None

dispatches

get

  • get(): Optional[Dict]

test

  • test(): Optional[Dict]

update

  • update(*, event_types, request_url, payload_template, actor_id, actor_task_id, actor_run_id, ignore_ssl_errors, do_not_retry, is_ad_hoc): Dict

  • Parameters

    • event_types: Optional[List[WebhookEventType]] = Noneoptionalkeyword-only

      List of event types that should trigger the webhook. At least one is required.

    • request_url: Optional[str] = Noneoptionalkeyword-only

      URL that will be invoked once the webhook is triggered.

    • payload_template: Optional[str] = Noneoptionalkeyword-only

      Specification of the payload that will be sent to request_url

    • actor_id: Optional[str] = Noneoptionalkeyword-only

      Id of the actor whose runs should trigger the webhook.

    • actor_task_id: Optional[str] = Noneoptionalkeyword-only

      Id of the actor task whose runs should trigger the webhook.

    • actor_run_id: Optional[str] = Noneoptionalkeyword-only

      Id of the actor run which should trigger the webhook.

    • ignore_ssl_errors: Optional[bool] = Noneoptionalkeyword-only

      Whether the webhook should ignore SSL errors returned by request_url

    • do_not_retry: Optional[bool] = Noneoptionalkeyword-only

      Whether the webhook should retry sending the payload to request_url upon failure.

    • is_ad_hoc: Optional[bool] = Noneoptionalkeyword-only

      Set to True if you want the webhook to be triggered only the first time the condition is fulfilled. Only applicable when actor_run_id is filled.

    Returns Dict

    The updated webhook