PATCH /v1/webhook-endpoints/{id}
Change an endpoint's notice types or description, or pause it.
| Access | |
|---|---|
| Keys | secret only |
| Plan | every plan |
| Environment | live and sandbox |
| Acts for | the account |
| While the account is suspended | refused |
| During a data stop | works |
Path
| Name | Type | Description |
|---|---|---|
id |
string | Required. The endpoint's ID, "wh_…". |
Body
Send any of the three; only what you send changes. The address can not be changed.
| Field | Type | Description |
|---|---|---|
eventTypes |
list of saved_search.matches, favorite.listing_updated, favorite.listing_removed, listing.removed, account.suspended, account.reinstated, data.stale |
(optional) The notice types the endpoint receives. Left out when creating: all seven. |
description |
string or null | (optional) null removes it. |
enabled |
boolean | (optional) |
{
"enabled": false
}
Answers
200: The endpoint as it is now
The answer is { data, meta }; meta holds requestId and environment.
data is a WebhookEndpoint.
Errors
| Status | Codes |
|---|---|
| 400 | validation_failed |
| 401 | invalid_api_key, key_revoked, missing_api_key |
| 403 | account_pending, account_suspended, origin_not_allowed, secret_key_in_browser, secret_key_required |
| 404 | not_found |
| 429 | rate_limited |
| 500 | internal_error, temporarily_unavailable |
Every error has the same body, and says how to fix it (responses and errors).
More
Send any of eventTypes, description and enabled; only what you send changes.
description: null removes the description. An empty body is 400 validation_failed. Response
200 with the object.
- The URL can't be changed. Create a new endpoint for the new URL, then delete the old one.
Sending
urlis400 validation_failed. eventTypesmust name at least one type. To stop deliveries, setenabledtofalse.- Refused with
403 account_suspendedwhile the account is suspended.
This page is made from the route's own declaration by npm run openapi. To change it, change the declaration or its explanation, never this file.