Update a webhook
Webhooks
Update Webhook
Update a webhook endpoint’s URL, events, description, or enabled status. PATCH /webhooks/. Requires webhooks:write scope.
PATCH
Update a webhook
Documentation Index
Fetch the complete documentation index at: https://docs.fyatu.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Update one or more properties of an existing webhook endpoint. Only the fields you include are changed. To temporarily pause event delivery without deleting the endpoint, setenabled: false.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The webhook ID (prefix whk_) |
Request Body (all fields optional)
| Field | Type | Constraint | Description |
|---|---|---|---|
url | string | https:// required in LIVE | New endpoint URL |
description | string | Max 255 chars | Updated label |
events | array | 1–20 event types | Replaces the full events list |
enabled | boolean | — | true → ACTIVE, false → DISABLED |
Example
Success Response (200)
Returns the full updated webhook object:Error Codes
| Code | HTTP | Cause |
|---|---|---|
WEBHOOK_NOT_FOUND | 404 | Webhook does not exist or belongs to another business/environment |
WEBHOOK_HTTPS_REQUIRED | 422 | Updated URL must be https:// in LIVE environment |
INVALID_EVENT_TYPE | 422 | One or more event types in events are not recognised |
VALIDATION_ERROR | 422 | Invalid field values |
INSUFFICIENT_SCOPE | 403 | Key lacks webhooks:write scope |
Authorizations
API key from the FYATU CaaS portal. Pass as Authorization: Bearer <key>.
Path Parameters
Body
application/json
Required array length:
1 - 20 elementsAvailable options:
CARD_ISSUED, CARD_FROZEN, CARD_UNFROZEN, CARD_TERMINATED, CARD_FUNDED, CARD_UNLOADED, CARD_FUND_FAILED, CARD_UNLOAD_FAILED, CARDHOLDER_CREATED, CARDHOLDER_UPDATED, CARDHOLDER_SUSPENDED, CARDHOLDER_REACTIVATED, CARDHOLDER_TERMINATED, CARDHOLDER_KYC_SUBMITTED, CARDHOLDER_KYC_SUBMISSION_FAILED, CARDHOLDER_KYC_APPROVED, CARDHOLDER_KYC_REJECTED, CARDHOLDER_KYC_REVIEW_PENDING, PROGRAM_CREATED, PROGRAM_PAUSED, PROGRAM_RESUMED, PROGRAM_CLOSED, PROGRAM_BALANCE_LOW, PROGRAM_BALANCE_FUNDED, PROGRAM_WITHDRAWAL_INITIATED, PROGRAM_WITHDRAWAL_COMPLETED, PROGRAM_WITHDRAWAL_FAILED, TRANSACTION_AUTHORIZED, TRANSACTION_CLEARED, TRANSACTION_REVERSED, TRANSACTION_DECLINED, TRANSACTION_FEE, BILLING_INVOICE_CREATED, BILLING_INVOICE_PAID, BILLING_INVOICE_OVERDUE, BILLING_DEPOSIT_DETECTED, BILLING_DEPOSIT_CONFIRMED Example:
[
"CARD_ISSUED",
"CARD_FUNDED",
"CARD_TERMINATED",
"TRANSACTION_AUTHORIZED"
]false → DISABLED, true → ACTIVE

