---
title: "Update view"
method: PATCH
path: "/api/v1/models/{modelId}/view/{viewName}"
tags: ["Models"]
---

# Update view

`PATCH /api/v1/models/{modelId}/view/{viewName}`

## Path parameters

- `modelId` string, uuid, required — Model UUID
- `viewName` string, required — View name

## Query parameters

- `branch_id` string, uuid — Branch ID to use for branch-aware operations

## Request body

- ModelsUpdateViewBody
  - `aiContext` string — AI context for the view
  - `description` string — View description
  - `format` string — View format
  - `hidden` boolean — Whether the view is hidden
  - `label` string — View label
  - `tags` string[] — Tags for the view

## Response `200`

View updated successfully

- SuccessResponse
  - `success` boolean, required — Whether the operation was successful

## Other responses

- `400` — Invalid request body
- `401` — Authentication required
- `403` — Permission denied
- `404` — Model or view not found

---

[API](https://skmtc.net/omniapp/apis/omni-api.md) · [All operations](https://skmtc.net/omniapp/apis/omni-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/omniapp/omni-api/versions/4701f292c621/schema)
