Skip to main content

WebhookClient

Sub-client for manipulating a single webhook.

Index

Methods

delete

  • delete(): None

dispatches

get

  • get(): dict | None

test

  • test(): dict | None

update

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

  • Parameters

    • keyword-onlyevent_types: list[WebhookEventType] | None = None

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

    • keyword-onlyrequest_url: str | None = None

      URL that will be invoked once the webhook is triggered.

    • keyword-onlypayload_template: str | None = None

      Specification of the payload that will be sent to request_url

    • keyword-onlyheaders_template: str | None = None

      Headers that will be sent to the request_url

    • keyword-onlyactor_id: str | None = None

      Id of the Actor whose runs should trigger the webhook.

    • keyword-onlyactor_task_id: str | None = None

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

    • keyword-onlyactor_run_id: str | None = None

      Id of the Actor run which should trigger the webhook.

    • keyword-onlyignore_ssl_errors: bool | None = None

      Whether the webhook should ignore SSL errors returned by request_url

    • keyword-onlydo_not_retry: bool | None = None

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

    • keyword-onlyis_ad_hoc: bool | None = None

      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

Page Options