---
title: "Save a discovery query as a reusable view (smart collection)."
method: POST
path: "/v1/op/saved_views.create"
tags: ["kernel-ops"]
---

# Save a discovery query as a reusable view (smart collection).

`POST /v1/op/saved_views.create`

## Headers

- `x-api-key` string, nullable

## Request body

- SavedViewCreateInput
  - `name` string, required
  - `query` object
  - `kind` string
  - `project_id` string, nullable
  - `color` string, nullable
  - `is_favorite` boolean
  - `pinned` boolean

## Response `200`

Successful Response

- SavedView
  - `id` string, required
  - `name` string, required
  - `kind` string
  - `project_id` string, nullable
  - `query` object
  - `color` string, nullable
  - `is_favorite` boolean
  - `pinned` boolean
  - `last_run_at` string, nullable
  - `result_count` integer, nullable
  - `created_at` string, nullable

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.dev/geopera/apis/geopera-data-platform.md) · [All operations](https://skmtc.dev/geopera/apis/geopera-data-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/geopera/geopera-data-platform/revisions/cb0130b2a40a/schema)
