# Change a saved search

> Renames it, pauses or resumes it, or changes how often it tells you.


`PATCH https://dev.siteswap.pro/api/v1/saved-searches/{id}`

Renames it, pauses or resumes it, or changes how often it tells you.

Needs the `alerts` scope.

## Parameters

- `id` (path, string, required): The saved search

## Body

- `name` (string)
- `mode` ("instant" | "daily")
- `paused` (boolean)

```json
{
  "paused": true
}
```

## Responses

- 200: OK
- 400: bad_request, key_in_url or invalid_json: the request could not be read
- 401: missing_key or invalid_key: no key, or a key that is not valid or was revoked
- 403: key_pending, key_declined, scope_missing, terms_required or account_unavailable: see Errors
- 404: not_found: nothing here that you may see
- 413: too_large: the body is over 256 KB
- 429: rate_limited or daily_quota: wait for Retry-After seconds

## Response fields

- `id` (string)
- `name` (string)
- `marketplace` (string)
- `query` (string): The browse address it watches
- `mode` ("instant" | "daily"): A notification per match, or one summary a day
- `paused` (boolean)
- `matches` (integer): Listings matched so far
- `created_at` (string): When it was saved. ISO 8601 in UTC

```json
{
  "data": {
    "id": "string",
    "name": "string",
    "marketplace": "string",
    "query": "string",
    "mode": "instant",
    "paused": false,
    "matches": 0,
    "created_at": "string"
  },
  "meta": {
    "request_id": "3f9a1c0b7d2e",
    "api_version": "v1"
  }
}
```

## Example

```bash
curl -X PATCH "https://dev.siteswap.pro/api/v1/saved-searches/1042" \
  -H "Authorization: Bearer ssk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"paused":true}'
```