# PATCH /v1/saved-searches/{id} Change a saved search's name, criteria or alert frequency. | Access | | | --- | --- | | Keys | publishable or secret | | Plan | every plan | | Environment | live and sandbox | | Acts for | one consumer | | While the account is suspended | refused | | During a data stop | works | ## Path | Name | Type | Description | | --- | --- | --- | | `id` | string | **Required.** The saved search's ID, "ss_…". | ## Headers | Name | Description | | --- | --- | | `X-Client-Token` | With a publishable key: **required.** A token your server minted for the consumer with [`POST /v1/client-tokens`](create-client-token.md). | | `X-Client-Id` | With a secret key: **required.** Your own opaque ID for the consumer. | ## Body Send any of the three; only what you send changes. | Field | Type | Description | | --- | --- | --- | | `name` | string or null | (optional) null removes the name. | | `criteria` | [SearchFilters](../objects.md#searchfilters) | (optional) | | `alertFrequency` | `instant`, `daily`, `weekly`, `off` | (optional) When matches are gathered into a notice: after each data update, daily at 7:00 am Eastern, Mondays at 7:00 am Eastern, or never. | ```json { "alertFrequency": "instant" } ``` ## Answers ### 200: The saved search as it is now The answer is `{ data, meta }`; `meta` holds `requestId` and `environment`. `data` is a [SavedSearch](../objects.md#savedsearch). ## Errors | Status | Codes | | --- | --- | | 400 | [`client_id_must_be_opaque`](../../errors/client_id_must_be_opaque.md), [`validation_failed`](../../errors/validation_failed.md) | | 401 | [`client_token_account_mismatch`](../../errors/client_token_account_mismatch.md), [`client_token_expired`](../../errors/client_token_expired.md), [`client_token_invalid`](../../errors/client_token_invalid.md), [`client_token_required`](../../errors/client_token_required.md), [`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), [`tier_insufficient`](../../errors/tier_insufficient.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 `name`, `criteria` and `alertFrequency`; only what you send changes. `name: null` removes the name. New `criteria` are checked exactly as on create. An empty body is `400 validation_failed`. Response `200` with the object. - Changing `criteria` starts the search afresh: listings that match the new criteria at that moment don't alert. Sending the same criteria again changes nothing. - Changing only `alertFrequency` neither loses nor repeats a change: whatever hasn't alerted yet goes out at the new frequency. Leaving `off` starts the search afresh. - 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._