---
title: "Create Saved View"
method: POST
path: "/api/v1/logs/{subject}/views"
tags: ["logs"]
---

# Create Saved View

`POST /api/v1/logs/{subject}/views`

## Path parameters

- `subject` string, required

## Request body

- SavedViewWrite
  - `name` string, required
  - `filters` object
  - `position` integer

## Response `201`

Successful Response

- SavedViewRead
  - `id` string, uuid, required
  - `subject` string, required
  - `name` string, required
  - `filters` object, required
  - `is_shared` boolean, required
  - `position` integer, required

## Other responses

- `422` — Validation Error

## Changes

> 22 revisions in range; 1 not diffed.

- **2026-09-03** `d65b8fefae34` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/getanana/apis/cleon-api/changes/api/v1/logs/:subject/views/post.md)

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getanana/apis/cleon-api/revisions/7a2c09378911?raw)
