---
title: "Update saved search"
method: PATCH
path: "/v1/projects/{projectSlug}/searches/{searchSlug}"
tags: ["Saved Searches"]
---

# Update saved search

`PATCH /v1/projects/{projectSlug}/searches/{searchSlug}`

Updates a saved search. Renaming may regenerate the slug — clients should re-read the response or rely on the `id` for stable references.

## Path parameters

- `projectSlug` string, required — Project slug (human-readable identifier)
- `searchSlug` string, required — Saved-search slug (human-readable identifier within the project).

## Request body

- UpdateSavedSearchBody
  - `name` string — New human-readable name. Triggers slug regeneration when the change affects the slug form (cosmetic edits like capitalization keep the URL stable).
  - `query` string, nullable — Replace the free-text query. Pass `null` to clear it.
  - `filters` object — Replace the structured filter set.

## Response `200`

Updated saved search

- SavedSearch
  - `id` string, required — Stable saved-search identifier.
  - `organizationId` string, required — Organization that owns this saved search.
  - `projectId` string, required — Project this saved search belongs to.
  - `slug` string, required — URL-safe slug derived from `name`. Regenerated when the name changes in a way that affects the slug.
  - `name` string, required — Human-readable name.
  - `query` string, nullable, required — Free-text semantic query applied alongside `filters`. `null` when the search is filter-only. At least one of `query` or `filters` must be set.
  - `filters` object, required — Structured filter set applied alongside `query`. Empty object means filter-free. At least one of `query` or `filters` must be set.
  - `deletedAt` string, nullable, required — ISO-8601 timestamp at which the search was deleted. `null` while active.
  - `createdAt` string, required — ISO-8601 timestamp of creation.
  - `updatedAt` string, required — ISO-8601 timestamp of the last update.

## Other responses

- `400` — Validation error
- `401` — Unauthorized
- `404` — Not found

---

[API](https://skmtc.net/latitude-dev/apis/latitude.md) · [All operations](https://skmtc.net/latitude-dev/apis/latitude/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/latitude-dev/latitude/versions/6a8789c59a5c/schema)
