---
title: "Create View"
method: POST
path: "/projects/{project_id}/views"
tags: ["component_views"]
---

# Create View

`POST /projects/{project_id}/views`

Create a new component view.

If this is the first view for the scope, it will automatically be set as default.

Permissions:
- User views: Any project collaborator can create
- Project views: Only owner/editor can create

## Path parameters

- `project_id` string, uuid4, required

## Request body

- ComponentViewCreate — Schema for creating a new component view.
  - `project_id` string, uuid4, required
  - `run_id` string, uuid4, nullable
  - `component` 'logstream_table' | 'experiments_table', required — Types of components that can have saved views.
  - `visibility` 'user' | 'project' — Visibility levels for views.
  - `name` string, required — Name of the view
  - `description` string, nullable — Optional description
  - `view_data` object, required — JSON view configuration

## Response `201`

Successful Response

- ComponentViewResponse — Response schema for component view with computed fields.
  - `id` string, uuid4, required
  - `created_by` string, uuid4, required
  - `project_id` string, uuid4, required
  - `run_id` string, uuid4, nullable, required
  - `component` 'logstream_table' | 'experiments_table', required — Types of components that can have saved views.
  - `visibility` 'user' | 'project', required — Visibility levels for views.
  - `name` string, required
  - `description` string, nullable, required
  - `view_data` object, required
  - `is_default` boolean, required
  - `can_edit` boolean
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/galileo/apis/galileo-api-server.md) · [All operations](https://skmtc.net/galileo/apis/galileo-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/galileo/galileo-api-server/versions/933e8c8e6366/schema)
