hooks

Update Hook

Updates the configuration of an existing webhook, including its name, event subscriptions, or target URL.

patch/hooks/{hookId}

Path parameters

hookIdstring required

The ID of the webhook to update. Provided as a path parameter.

Request body

namestring

A new name for the hook.

eventsstring[]

Updated list of event types to subscribe to.

urlstring uri

A new URL to send webhook payloads to.

Response

Success

idstring required

A unique identifier for the webhook.

object'hook' required

Fixed value identifying this object as a webhook.

namestring required

A user-defined name to label the webhook.

eventsstring[] required

List of event types this webhook is subscribed to.

chatIdstring

Optional ID of the chat that this webhook is scoped to.

urlstring required

Target URL that receives event payloads for this webhook.

Changes