Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.27 KB

toloka.client.webhook_subscription.WebhookSubscription.md

File metadata and controls

31 lines (25 loc) · 1.27 KB

WebhookSubscription

toloka.client.webhook_subscription.WebhookSubscription | Source code

WebhookSubscription(
    self,
    *,
    webhook_url: Optional[str] = None,
    event_type: Union[EventType, str, None] = None,
    pool_id: Optional[str] = None,
    secret_key: Optional[str] = None,
    id: Optional[str] = None,
    created: Optional[datetime] = None
)

A subscription to an event in Toloka.

For examples, you can receive notifications when a pool is closed or a task's status changes. Learn more about notifications.

Parameters Description

Parameters Type Description
id Optional[str]

The ID of the subscription. Read-only field.

webhook_url Optional[str]

The URL to which notifications are sent.

event_type Optional[EventType]

The event type.

pool_id Optional[str]

The ID of the pool that the subscription was created for.

created Optional[datetime]

The UTC date and time when the subscription was created. Read-only field.