How to update a Webhook?
Quick guide to editing an existing webhook in FreJun — update destination URL, status, and custom headers using the PATCH API.
Webhooks help FreJun communicate real-time call and event data to your external systems such as CRM, ATS, or internal dashboards. Over time, you may need to update an existing webhook—whether to change the callback URL, enable/disable delivery, or add custom security headers. FreJun allows this through a simple PATCH API request without recreating the webhook from scratch.
This guide explains the exact endpoint, authentication method, and payload structure required to update a webhook in FreJun. Follow the example to safely modify webhook behavior while keeping your integrations uninterrupted.
To update an existing webhook:
-
Endpoint:
PATCH /api/v1/integrations/webhook/{hook_id}/ -
Headers:
Authorization: Bearer <Base64Encoded(Client ID:Client Secret)>Content-Type: application/json
-
Payload:
{
"active": true,
"callback_url": "<https://yourapp.com/new-webhook-endpoint>",
"custom_headers": {
"X-Custom-Header": "value"
}
}
This allows you to modify the webhook's status, callback URL, and add custom headers.Docs
If you have any more questions or need assistance, feel free to reach out to us at Hello@frejun.com. We’re here to help!
👉 Sign up for FreJun: https://product.frejun.com/signup