Skip to main content

Update Webhook

Updates one or more fields on an existing webhook.

Path Parameters

Request Body

All fields are optional. Only provided fields will be updated.
On a webhook that has a body or the headers on after the update, these changes need webhooks:include_payloads (see Create a webhook): turning one of them on; changing the url; changing auth_type, auth_config or request_headers (on a receiver that picks the account from a key in a header, the credential decides who receives the delivery; sending the stored value again is not a change); adding a request.* event type to event_types; adding a route to route_filter or setting it to null (every route); setting enabled to true when it was false; and changing method from GET, which sends no body, to a method that sends one. The check reads the webhook as it will be stored, so an update that names none of the three switches is checked too. Renaming it, changing its timeout or retries, changing its signature format, removing event types or routes, adding audit.event / workflow.execution.* / vault.token.expiring, disabling it, and turning the switches off are unaffected.An update is checked against the webhook as it was read and is written only if the webhook has not changed in between. If another request changed it first the answer is 409 webhook_changed and nothing is written: read the webhook again and retry.
| hmac_key_id | uuid | Crypto Keys transit key for HMAC signing | | hmac_format | string | Signature format (legacy, stripe, github, slack, aws-sns, custom) | | hmac_header_name | string | Custom header name when hmac_format is custom |

Response

Returns { "data": { ... }, "meta": { ... } } — the updated webhook fields: id, name, description, url, method, event_types, auth_type, enabled, created_at. The secret_key is never returned after creation.

Errors