## Update `client.webhooks.update(WebhookUpdateParamsbody, RequestOptionsoptions?): WebhookUpdateResponse` **put** `/api/account/webhooks` Replace all webhooks for the account. This overwrites existing webhooks. ### Parameters - `body: WebhookUpdateParams` - `webhooks: Webhooks` - `call_log?: Array` Webhooks for call log events - `string` - `WebhookConfiguration` - `url: string` Webhook endpoint URL for receiving callbacks - `secret?: string` Secret for webhook signature verification - `contact_created?: Array` Webhooks for contact created events (URL strings only) - `globalSecret?: string` Global secret applied to all webhooks - `line_assigned?: Array` Webhooks for line assigned events - `string` - `WebhookConfiguration` - `url: string` Webhook endpoint URL for receiving callbacks - `secret?: string` Secret for webhook signature verification - `line_blocked?: Array` Webhooks for line blocked events - `string` - `WebhookConfiguration` - `url: string` Webhook endpoint URL for receiving callbacks - `secret?: string` Secret for webhook signature verification - `outbound?: Array` Webhooks for outbound message status updates - `string` - `WebhookConfiguration` - `url: string` Webhook endpoint URL for receiving callbacks - `secret?: string` Secret for webhook signature verification - `receive?: Array` Webhooks for inbound message events - `string` - `WebhookConfiguration` - `url: string` Webhook endpoint URL for receiving callbacks - `secret?: string` Secret for webhook signature verification - `typing_indicator?: Array` Webhooks for typing indicator events - `string` - `WebhookConfiguration` - `url: string` Webhook endpoint URL for receiving callbacks - `secret?: string` Secret for webhook signature verification ### Returns - `WebhookUpdateResponse` - `message?: string` - `status?: string` - `webhooks?: Webhooks` - `call_log?: Array` Webhooks for call log events - `string` - `WebhookConfiguration` - `url: string` Webhook endpoint URL for receiving callbacks - `secret?: string` Secret for webhook signature verification - `contact_created?: Array` Webhooks for contact created events (URL strings only) - `globalSecret?: string` Global secret applied to all webhooks - `line_assigned?: Array` Webhooks for line assigned events - `string` - `WebhookConfiguration` - `url: string` Webhook endpoint URL for receiving callbacks - `secret?: string` Secret for webhook signature verification - `line_blocked?: Array` Webhooks for line blocked events - `string` - `WebhookConfiguration` - `url: string` Webhook endpoint URL for receiving callbacks - `secret?: string` Secret for webhook signature verification - `outbound?: Array` Webhooks for outbound message status updates - `string` - `WebhookConfiguration` - `url: string` Webhook endpoint URL for receiving callbacks - `secret?: string` Secret for webhook signature verification - `receive?: Array` Webhooks for inbound message events - `string` - `WebhookConfiguration` - `url: string` Webhook endpoint URL for receiving callbacks - `secret?: string` Secret for webhook signature verification - `typing_indicator?: Array` Webhooks for typing indicator events - `string` - `WebhookConfiguration` - `url: string` Webhook endpoint URL for receiving callbacks - `secret?: string` Secret for webhook signature verification ### Example ```typescript import SendblueAPI from 'sendblue'; const client = new SendblueAPI({ apiKey: process.env['SENDBLUE_API_API_KEY'], // This is the default and can be omitted apiSecret: process.env['SENDBLUE_API_API_SECRET'], // This is the default and can be omitted }); const webhook = await client.webhooks.update({ webhooks: {} }); console.log(webhook.message); ```