# 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) | ```json { "enabled": false } ``` ## Answers ### 200: The endpoint as it is now The answer is `{ data, meta }`; `meta` holds `requestId` and `environment`. `data` is a [WebhookEndpoint](../objects.md#webhookendpoint). ## Errors | Status | Codes | | --- | --- | | 400 | [`validation_failed`](../../errors/validation_failed.md) | | 401 | [`invalid_api_key`](../../errors/invalid_api_key.md), [`key_revoked`](../../errors/key_revoked.md), [`missing_api_key`](../../errors/missing_api_key.md) | | 403 | [`account_pending`](../../errors/account_pending.md), [`account_suspended`](../../errors/account_suspended.md), [`origin_not_allowed`](../../errors/origin_not_allowed.md), [`secret_key_in_browser`](../../errors/secret_key_in_browser.md), [`secret_key_required`](../../errors/secret_key_required.md) | | 404 | [`not_found`](../../errors/not_found.md) | | 429 | [`rate_limited`](../../errors/rate_limited.md) | | 500 | [`internal_error`](../../errors/internal_error.md), [`temporarily_unavailable`](../../errors/temporarily_unavailable.md) | Every error has the same body, and says how to fix it ([responses and errors](../../concepts/responses-and-errors.md)). ## 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 `url` is `400 validation_failed`. - `eventTypes` must name at least one type. To stop deliveries, set `enabled` to `false`. - Refused with `403 account_suspended` while 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._