---
title: "Update a saved view"
method: PATCH
path: "/v2/workbooks/{workbookId}/bookmarks/{bookmarkId}"
tags: ["Workbooks"]
---

# Update a saved view

`PATCH /v2/workbooks/{workbookId}/bookmarks/{bookmarkId}`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/workbooks/{workbookId}/bookmarks/{bookmarkId}`
- Auth: HTTP bearer

Update a saved view (formerly called a bookmark), for example by associating it with a newer custom view.

### Usage notes
- Retrieve the **workbookId** by calling the [/v2/workbooks](https://help.sigmacomputing.com/reference/list-workbooks) endpoint.
- Retrieve the **bookmarkId** by calling the [/v2/workbooks/{workbookId}/bookmarks](https://help.sigmacomputing.com/reference/get-workbook-bookmarks) endpoint.
- Retrieve the **exploreKey** by identifying the ID of the custom view that you want to save. When viewing a custom view in a workbook, its explore key is visible in the URL: `:explore=76c76e52-8d94-448a-969c-32cc18da9ea0`. Provide the ID after the `=`.

### Usage scenarios
- **Rename or share:** Update the saved view name or change whether it is shared.
- **Refresh from a custom view:** Associate the saved view with a newer custom view by sending a new `exploreKey`.
- **Set a default view:** Set `isDefault` to make this saved view the default when the workbook opens.

## Path parameters

- `workbookId` string, required
- `bookmarkId` string, required

## Request body

- object
  - `name` string, nullable
  - `isShared` boolean, nullable
  - `isDefault` boolean, nullable
  - `exploreKey` string, nullable: ID of the associated custom view.

## Response `200`

The response body.

- WorkbooksUpdateWorkbookBookmarkResponse200
  - `bookmarkId` string, required
  - `name` string, required
  - `isShared` boolean, required: Whether the saved view is shared.
  - `exploreKey` string, required: ID of the associated custom view.
  - `isDefault` boolean: Whether this saved view is the default view for the workbook.

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
