---
title: "Rename, share or change the filters of your saved search"
method: PATCH
path: "/projects/{project_id}/error-saved-searches/{saved_search_id}"
tags: ["error-tracking"]
---

# Rename, share or change the filters of your saved search

`PATCH /projects/{project_id}/error-saved-searches/{saved_search_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/error-saved-searches/{saved_search_id}`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `saved_search_id` integer, required

## Request body

- UpdateErrorSavedSearchRequest
  - `filters` SavedSearchFilters, nullable: The list filters a saved search applies. Every field is optional; an empty set is "all groups, newest first".
    - `assignee` string, nullable: `me`, `none`, `user:<id>` or `team:<id>`.
    - `environment_id` integer, nullable: An environment of the project.
    - `search` string, nullable: Text in the title, error type or message.
    - `sort_by` string, nullable: `last_seen` (default), `first_seen`, `total_count` or `events_in_range`.
    - `sort_order` string, nullable: `asc` or `desc` (default).
    - `status` string, nullable: `unresolved`, `resolved` or `ignored`; omitted for every status.
  - `name` string, nullable
  - `shared` boolean, nullable

## Response `200`

Saved search changed

- ErrorSavedSearchResponse: A saved search: a name and the list filters it applies.
  - `created_at` string, date-time, required
  - `filters` SavedSearchFilters, required: The list filters a saved search applies. Every field is optional; an empty set is "all groups, newest first".
    - `assignee` string, nullable: `me`, `none`, `user:<id>` or `team:<id>`.
    - `environment_id` integer, nullable: An environment of the project.
    - `search` string, nullable: Text in the title, error type or message.
    - `sort_by` string, nullable: `last_seen` (default), `first_seen`, `total_count` or `events_in_range`.
    - `sort_order` string, nullable: `asc` or `desc` (default).
    - `status` string, nullable: `unresolved`, `resolved` or `ignored`; omitted for every status.
  - `id` integer, required
  - `is_owner` boolean, required: Whether the caller owns it, and so may change it.
  - `name` string, required
  - `owner_name` string, nullable
  - `owner_user_id` integer, required
  - `project_id` integer, required
  - `shared` boolean, required: Visible to everyone who can open the project, not only its owner.
  - `updated_at` string, date-time, required

## Other responses

- `400`: An invalid name or filter
- `401`: Not authenticated
- `403`: Not its owner, or missing error_tracking:write
- `404`: No such saved search you can see in the project
- `409`: You already have a saved search with that name
- `500`: Internal server error

## Changes

- **2026-11-20** `89a5fa242f36`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/error-saved-searches/:saved_search_id/patch.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
