Actions47
- Account Actions
- Chat Actions
- Contact Actions
- Group Actions
- Location Actions
- Message Actions
- Number Actions
- Phone Number Actions
- Poll Actions
- Reaction Actions
- Typing Indicator Actions
- Webhook Actions
Webhook → Update
AI-generatedSummary
Update a webhook's configuration, expiration, deprecation status, or event type.
Inputs
- webhookId (required) — The webhook ID to update (e.g. wh_abc123).
- updateFields — A collection of fields to update. Supported fields include 'webhook_type' (Message, Status, or All), 'valid_until' (expiration timestamp in milliseconds, -1 for no expiration), and 'deprecate' (boolean to mark the webhook as deprecated).
- requestOptions — Optional request settings including batching, proxy, timeout, and SSL verification.
Output shape
A single record containing the updated webhook details.
The updated webhook configuration is returned in the response body.
Examples
Example 1: Renew a webhook expiration date
Set webhookId to the target webhook and valid_until to the new Unix timestamp in milliseconds.
Example 2: Change event type
Set webhookId to the target webhook and webhook_type to 'status' or 'all'.
Example 3: Deprecate a webhook
Set webhookId to the target webhook and deprecate to true.