---
title: "Update Filter View"
method: PATCH
path: "/api/v1/sessions/{session_id}/views/{view_id}"
tags: ["tracer-sessions"]
---

# Update Filter View

`PATCH /api/v1/sessions/{session_id}/views/{view_id}`

Update a filter view.

## Path parameters

- `session_id` string, uuid, required
- `view_id` string, uuid, required

## Request body

- FilterViewUpdate
  - `filter_string` string, nullable
  - `display_name` string, nullable
  - `description` string, nullable
  - `trace_filter_string` string, nullable
  - `tree_filter_string` string, nullable
  - `type` 'runs' | 'threads' | 'single_run'
  - `start_time` string, date-time, nullable
  - `end_time` string, date-time, nullable
  - `duration` string, nullable

## Response `200`

Successful Response

- FilterView
  - `filter_string` string, nullable
  - `trace_filter_string` string, nullable
  - `tree_filter_string` string, nullable
  - `display_name` string, required
  - `description` string, nullable
  - `type` 'runs' | 'threads' | 'single_run'
  - `start_time` string, date-time, nullable
  - `end_time` string, date-time, nullable
  - `duration` string, nullable
  - `id` string, uuid, required
  - `session_id` string, uuid, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

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