Update webhook
cooper_update_webhookUse this when a webhook URL, event list, inbox filter, or enabled flag should change. Requires auth. Inputs: webhook_id (required), url (optional http(s) URL), events (optional array), enabled (optional boolean; true re-enables and resets consecutive_failures, false disables and stops deliveries), inbox_ids (optional; at most 10 inbox ids). Returns the webhook with the secret redacted. A disabled hook receives no deliveries. Fails with 404 webhook_not_found, 400 too_many_inboxes, 400 invalid_url, or 404 inbox_not_found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Replacement http(s) URL | |
| events | No | Replacement event list. At least one of message.received, message.held, message.sent, message.blocked, message.bounced, message.complained, task.received, owner.reply, domain.verified, draft.created, draft.approved, draft.rejected, draft.sent. | |
| enabled | No | true re-enables the hook and resets consecutive_failures to 0. false disables it. | |
| inbox_ids | No | Replacement inbox filter, at most 10 ids. An empty array matches every inbox. More than 10 returns 400 too_many_inboxes. | |
| webhook_id | Yes | Webhook id (wh_…) |