# Update Saved Search

> Rename a saved search or switch its alert.

Requires an API key with the `write` scope.

## Path Parameters

<ParamField path="saved_search_id" type="string" required>The saved search id.</ParamField>

## Body Parameters

<ParamField body="name" type="string">New name, 1 to 200 characters.</ParamField>
<ParamField body="alertEnabled" type="boolean">Switch the new-results alert on or off.</ParamField>

## Response

<ResponseField name="data" type="object">
  <Expandable title="data">
    <ResponseField name="id" type="string">Saved search identifier.</ResponseField>
    <ResponseField name="name" type="string">Name.</ResponseField>
    <ResponseField name="kind" type="string">`people` or `companies`.</ResponseField>
    <ResponseField name="filters" type="object">The stored filter object.</ResponseField>
    <ResponseField name="lastRunAt" type="string">ISO 8601 timestamp of the last run, or `null`.</ResponseField>
    <ResponseField name="lastTotal" type="integer">Result count from the last run, or `null`.</ResponseField>
    <ResponseField name="alertEnabled" type="boolean">Whether alerts are on for this search.</ResponseField>
    <ResponseField name="createdAt" type="string">ISO 8601 timestamp.</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
```bash cURL
curl -X PATCH "https://api.foxreach.io/api/v1/lead-finder/saved-searches/ss_abc123" \
  -H "X-API-Key: otr_your_key" \
  -H "Content-Type: application/json" \
  -d '{"alertEnabled": true}'
```

```python Python SDK
from foxreach import FoxReach

client = FoxReach(api_key="otr_your_key")
client.lead_finder.update_saved_search("ss_abc123", alert_enabled=True)
```

```typescript TypeScript SDK
import { FoxReach } from "foxreach";

const client = new FoxReach({ apiKey: "otr_your_key" });
await client.leadFinder.updateSavedSearch("ss_abc123", { alertEnabled: true });
```
</RequestExample>

<ResponseExample>
```json
{
  "data": {"id": "ss_abc123", "name": "CTOs in Berlin", "kind": "people", "filters": {"jobTitles": ["CTO"]}, "lastRunAt": null, "lastTotal": null, "alertEnabled": false, "createdAt": "2026-11-04T10:00:00+00:00"}
}
```
</ResponseExample>

## Errors

| Status | Description |
|--------|-------------|
| `401` | Missing, invalid, revoked or expired API key |
| `403` | API key does not have the required scope: `write` |
| `404` | `Lead Finder is not enabled` while Lead Finder is switched off on this environment |
| `503` | `Lead Finder is not configured` when it is enabled but has no data provider key |
| `404` | `Saved search not found`: it does not exist in this workspace |

## Rate Limit

- **120 requests per minute, shared by every `write` call in your workspace.** Fixed 60-second window.
- Every response includes `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (unix epoch seconds) and `X-RateLimit-Bucket` (`write`).
- A `429` response includes a `Retry-After` header (seconds until the bucket resets).

For client-side patterns, see [Rate Limiting](/rate-limiting).
