---
title: "Update a saved view"
method: PATCH
path: "/api/workspaces/{workspaceId}/projects/{projectId}/views/{viewId}"
tags: ["Views"]
---

# Update a saved view

`PATCH /api/workspaces/{workspaceId}/projects/{projectId}/views/{viewId}`

## Request

- Base URL: `https://hiveship.app/api`
- URL: `https://hiveship.app/api/api/workspaces/{workspaceId}/projects/{projectId}/views/{viewId}`
- Auth: API key in cookie `hiveship_access`

## Path parameters

- `workspaceId` string, required
- `projectId` string, required
- `viewId` string, required

## Request body

- object
  - `name` string
  - `description` string
  - `filters` object
    - `status` string
    - `priority` 'URGENT' | 'HIGH' | 'MEDIUM' | 'LOW' | 'NONE'
    - `assigneeId` string, cuid
    - `agentId` string, cuid
    - `sprintId` union
      - string, cuid
      - 'null'
    - `labelIds` string[]
    - `delegateType` 'HUMAN' | 'AGENT'
  - `isDefault` boolean
  - `sortOrder` number

## Response `200`

View updated

- object
  - `success` boolean, required
  - `data` object, required
    - `id` string, cuid, required
    - `name` string, required
    - `description` string, nullable, required
    - `filters` object, required
      - `status` string
      - `priority` 'URGENT' | 'HIGH' | 'MEDIUM' | 'LOW' | 'NONE'
      - `assigneeId` string, cuid
      - `agentId` string, cuid
      - `sprintId` union
        - string, cuid
        - 'null'
      - `labelIds` string[]
      - `delegateType` 'HUMAN' | 'AGENT'
    - `isDefault` boolean, required
    - `sortOrder` number, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Other responses

- `400`: Validation error
- `403`: Feature not available on current plan
- `404`: View not found
- `409`: Duplicate view name

---

[API](https://skmtc.dev/hiveship/apis/hiveship-api.md) · [All operations](https://skmtc.dev/hiveship/apis/hiveship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hiveship/apis/hiveship-api/revisions/73d3e26544e4?raw)
