Update webhook
Webhooks
Update Webhook
Updates webhook configuration. Allows updating URL, events, and active status.
PUT
Update webhook
Updates webhook configuration. Allows updating URL, events, and active status.
Authentication
This endpoint requires authentication via Bearer token:- Authorization:
Bearer <token>
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
organizationId | string (UUID) | Yes | Organization ID |
id | string (UUID) | Yes | Webhook ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
url | string | No | Webhook endpoint URL |
events | array | No | Array of event types |
isActive | boolean | No | Enable/disable webhook |
Updatable Fields
- URL: Change webhook endpoint
- Events: Update subscribed events
- Active Status: Enable or disable webhook delivery
Permissions
Only OWNERS and ADMINS can update webhooks.Example Request
Example Response
Common Errors
400 Bad Request
Invalid input data.401 Unauthorized
Authentication required.403 Forbidden
Only owners and admins can update webhooks.404 Not Found
Webhook not found.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Webhook updated successfully with new configuration.