Update

POST
Updates the requested webhook.

Request

This endpoint expects an object.
idstringRequired
ID for the webhook.
action"activate" or "deactivate"Optional
Allowed values: activatedeactivate
The action to update the webhook's status.
event_typesobjectOptional
headersobjectOptional
secretstringOptional
If provided, updates the secret that's used when verifying webhook events, which must be between 8 and 32 bytes (inclusive). Otherwise if empty, then a new secret is generated. If the webhook is active, then its status will transition to the 'unverified' state and it won't receive any object events until successfully verified.
urlstringOptional
The webhook's updated URL. If the webhook is active, then the webhook's status will transition to the 'unverified' state and it won't receive any object events until successfully verified.

Response

This endpoint returns an object.
webhookobject