# Update webhook configuration Updates the configuration details of an existing webhook, including subscribed events, name, notification failure settings, and HTTP dispatcher configuration. Endpoint: PATCH /webhooks/{webhookId} Version: 1.0 ## Header parameters: - `x-api-key` (string, required) Api key provided on integrations tab in Easyflow platform. - `x-api-secret` (string, required) Api Secret provided on integrations tab in Easyflow platform. ## Path parameters: - `webhookId` (string, required) The unique identifier of the webhook to be updated. Example: "692f3483106ee1344d9aa243" ## Request fields (application/json): - `events` (array) List of events to subscribe to. Enum: "order.chargeback", "order.updated", "order.canceled", "order.created", "order.paid", "order.partiallyPaid", "order.refunded", "subscription.created", "subscription.updated", "subscription.activated", "subscription.canceled", "subscription.deactivated", "subscription.expired", "subscription.inactivated", "subscriptionRecurrence.canceled", "subscriptionRecurrence.delayed", "subscriptionRecurrence.failed", "subscriptionRecurrence.paid" - `name` (string) The new name for the webhook. - `notifyOnFail` (object) Configuration for receiving notifications upon webhook delivery failures. - `notifyOnFail.email` (string) - `notifyOnFail.name` (string) - `httpDispatcher` (object) Updates to the HTTP dispatcher configuration. - `httpDispatcher.id` (string) The unique identifier of the dispatcher to update. Example: "692f3483106ee1344d9aa23d" - `httpDispatcher.headers` (object) Custom headers to be sent with the notification request. - `httpDispatcher.method` (string) The HTTP method for the dispatcher callback. Enum: "POST", "PUT", "PATCH" - `httpDispatcher.url` (string) The URL where the webhook events will be sent. ## Response 200 fields (application/json): - `statusCode` (integer) Example: 200 - `data` (object) - `data.updated` (boolean) Indicates whether the webhook was successfully updated (set to true). Example: true ## Response 400 fields (application/json): - `message` (string) Invalid param: [] Example: "Invalid param: []" - `error` (string) Bad Request Example: "Bad Request" - `statusCode` (integer) 400 Example: 400 ## Response 401 fields (application/json): - `message` (string) Invalid field Example: "Unauthorized" - `error` (string) Unauthorized Example: "Unauthorized" - `statusCode` (integer) 401 Example: 401 ## Response 403 fields (application/json): - `message` (string) Forbidden resource Example: "Forbidden resource" - `error` (string) Forbidden Example: "Forbidden" - `statusCode` (integer) 403 Example: 403 ## Response 500 fields (application/json): - `message` (string) Internal server error Example: "Internal server error" - `error` (string) Internal Server Error Example: "Internal Server Error" - `statusCode` (integer) 500 Example: 500