Update webhook
Replaces the settings of a webhook: the payload URL, the content type, the subscribed event types, the disabled flag, the secret key and the TLS check flag. Use it to change the event types, to rotate the secret key, or to pause the webhook with disabled.
This is a full replacement, not a partial update: send every field on every call. A field that you leave out gets its default (for subscribedEvents, a missing group is empty). The rules of Create webhook apply: at least 1 event type, and a payload URL that no other webhook of the organisation (or sandbox organisation) has.
The id, orgId, sandboxOrgId and timestamp of the webhook do not change. A new secret key signs the next attempt, also of a delivery that is in progress.
Authorizations
AuthorizationstringheaderrequiredYour API key with the prefix
ApiKey:ApiKey <your-api-key>. Get an API key.Scope:
webhooks:update
Path parameters
webhookId stringrequiredThe
idof the webhook, from Create webhook or List all webhooks.Example:
"68a1f2c3d4e5f6a7b8c9d0e1"
Body
The new settings of the webhook.
webhookobjectrequiredThe new settings of the webhook.
Response
The webhook after the update.
webhookobjectThe webhook after the update.