Ze da API icon

Ze da API

WhatsApp API powered by Ze da API - Send messages, manage groups, contacts and more

Actions137

Webhook → Update Received and Delivery Webhook

AI-generated

Summary

Update an existing webhook configuration

Inputs

  • value — The webhook URL to receive events. Must start with http:// or https://. Leave empty to clear.
  • requestOptions — Options for advanced request behaviour, such as batching.
  • allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation is not possible.
  • proxy — HTTP proxy to use, e.g., http://username:password@myproxy:3128.
  • timeout — Time in ms to wait for the server to send response headers before aborting the request.

Output shape

a single webhook object representing the updated webhook

Returns the updated webhook details; on error may return an error envelope.

Examples

Example 1: Update webhook URL and enable batching

value: https://example.com/webhook, requestOptions: { batch: { batchSize: 100, batchInterval: 500 } }, timeout: 15000

Example 2: Clear the webhook URL

value: (empty), requestOptions: {}, allowUnauthorizedCerts: false, proxy: '', timeout: 10000

Example 3: Use SSL bypass and a proxy

allowUnauthorizedCerts: true, proxy: http://username:password@myproxy:3128, timeout: 20000

Links

Discussion