Webhooks can be updated by provinding the below listed parameters.
Setting a webhook secret allows you to ensure that POST requests sent to the payload URL are from GitHub. When you set a secret, you’ll receive the X-PAYLIAS-SIGNATURE header in the webhook POST request.
The add_events array allows your webhook to subscribe to additional events while the remove_events array will unsubscribe the events from your webhook. Please note that the uniqueness constraint from the section above still applies.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The Partner ID header used for authorization
The Idempotency Key - usually a UUID
The unique identifier for the webhook
"whk_cjf0qivsemvkg2on8f9g"
Request to update an existing webhook
Whether the webhook is enabled
true
Endpoint URL of the webhook
"https://example.com/webhook"
Name of the webhook
"Payment Webhook"
Description of the webhook
"Payment notifications"
List of events the webhook subscribes to
List of events the webhook subscribes to
Secret for webhook signature verification
"ASDLKJASDFLKJ121232342"