---
title: "Save a search over the project's error groups"
method: POST
path: "/projects/{project_id}/error-saved-searches"
tags: ["error-tracking"]
---

# Save a search over the project's error groups

`POST /projects/{project_id}/error-saved-searches`

## 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`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required

## Request body

- CreateErrorSavedSearchRequest
  - `filters` SavedSearchFilters: 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, required: At most 100 characters, unique among your saved searches in the project.
  - `shared` boolean: Share with everyone who can open the project.

## Response `201`

Search saved

- 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, or 50 saved searches already
- `401`: Not authenticated
- `403`: Missing error_tracking:write or project access
- `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/post.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)
