Disable or enable destination
Update a webhook destination, including enable and disable.
Partial update. At least one field is required. active false disables the destination. active true clears the disabled timestamp and resets consecutive failures. eventTypes must be a non-empty subset of the catalog.
This route is console / Firebase only for now. Tenant API keys are not accepted.
See also
- Webhooks . Events you can subscribe to and the JSON posted to your URL.
Path parameters
| Name | Type | Required |
|---|---|---|
idWebhook destination UUID. Example: 4e2deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d | string No maximum | Required |
Body parameters
| Name | Type | Required |
|---|---|---|
activeIf false, disable the destination. If true, enable it again. Allowed values truefalse | boolean | Optional |
urlHTTPS URL. Private hosts and URLs with credentials are rejected. Example: https://hooks.leonescars.example/invunion | string Max 2048 | Optional |
descriptionOptional label. Example: Leones Cars operations | string Max 255 | Optional |
eventTypesEvent types to deliver. Non-empty subset of the catalog. | array | Optional |
Allowed values transaction.createdinvoice.createdinvoice.updatedinvoice.paidinvoice.partially_paidmatch.createdmatch.suggestedmatch.confirmedmatch.rejectedmatch.cancelledbank.connectedbank.disconnectedsync.completedsync.failed | ||
Errors
This operation can return the following errors in addition to generic HTTP failures.
| Error | HTTP code | Description |
|---|---|---|
Missing Bearer token | 401 | The Authorization header is missing or is not a Bearer token. |
Invalid token | 401 | Webhook destinations and deliveries are console-only. Send a Firebase ID token. Tenant API keys are not accepted on these routes. |
Too many requests, please try again later | 429 | Wait and retry. The Retry-After header is the number of seconds to wait. |
At least one field is required | 400 | The body was empty. |
Webhook URL must use a public host | 400 | The URL is not a public HTTP or HTTPS host. Other URL checks return a similar message. |
Webhook endpoint not found | 404 | No destination with this UUID exists in the authenticated tenant. |
Internal server error | 500 | Unexpected server error. The JSON body includes correlationId. Retry with backoff. |