> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clustr-ai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Saved View

> Rename, refilter, or (un)share a view you own

Only provided fields change. Only the view's owner can call this: a shared
view is read-only to everyone else.

```bash cURL theme={null}
curl -X PUT "https://api.clustr-ai.com/api/public/saved-views/3e5f1a22-..." \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Hot accounts (EMEA)", "is_shared": false}'
```

```json 200 theme={null}
{
  "success": true,
  "data": {
    "view": {
      "clustr_saved_view_id": "view_2smktjqhs4zr4rxsstanj669ya",
      "id": "3e5f1a22-...",
      "name": "Hot accounts (EMEA)",
      "is_shared": false,
      "is_owner": true
    }
  }
}
```

```json 403 theme={null}
{
  "success": false,
  "error": { "message": "you do not own this view", "code": "FORBIDDEN" }
}
```


## OpenAPI

````yaml PUT /saved-views/{viewId}
openapi: 3.1.0
info:
  title: Clustr Public API
  description: >
    Programmatic access to your Clustr network: import connectors, search warm
    intros (opportunities), and manage target accounts.


    ## Authentication

    All endpoints require a Bearer token (API key) in the `Authorization`
    header.


    ```

    Authorization: Bearer <your_api_key>

    ```


    API keys can be created and managed from the [API settings
    page](https://app.clustr-ai.com/api).
  version: '1.0'
  contact:
    name: Clustr Support
    url: https://clustr-ai.com
servers:
  - url: https://api.clustr-ai.com/api/public
    description: Production
security:
  - BearerAuth: []
paths:
  /saved-views/{viewId}:
    parameters:
      - name: viewId
        description: >-
          The saved view's Clustr ID (`view_…`), from [List Saved
          Views](/api-reference/list-saved-views).

          The id from earlier responses also works.
        in: path
        required: true
        schema:
          type: string
        example: view_jw8q3tg3dn1gerp76bhzbreczg
    put:
      tags:
        - Saved Views
      summary: Update Saved View
      description: >-
        Renames a view you own, changes its filters, or shares or unshares it.
        Only the fields you send change.
      operationId: updateSavedView
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSavedViewRequest'
      responses:
        '200':
          description: The updated view
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      view:
                        $ref: '#/components/schemas/SavedView'
        '400':
          description: Invalid filters
        '401':
          description: Invalid or missing API key
        '403':
          description: Not the view's owner
        '404':
          description: No such view
components:
  schemas:
    UpdateSavedViewRequest:
      type: object
      description: Only provided fields are changed.
      properties:
        entity:
          type: string
          deprecated: true
          description: 'Ignored: a view keeps the table it was created for.'
        member_query:
          type: string
          deprecated: true
          description: The same as `memberQuery`. `memberQuery` is the name to use.
        sourceKey:
          type: string
          deprecated: true
          description: 'Ignored: editing a view makes it yours and drops its source key.'
        name:
          type: string
          description: New display name.
        filters:
          type: object
          description: Replaces the stored filter state.
        is_shared:
          type: boolean
          description: Share or unshare the view.
        is_pinned:
          type: boolean
          description: Pin or unpin it in the sidebar.
        memberQuery:
          type: string
          description: >-
            Update alongside `filters` so a [Workflow](/workflows) built on this
            view keeps

            reading the same set the table shows.
    SavedView:
      type: object
      description: >-
        A named, reusable filter over one table. It is live: its results always
        reflect the current data.
      required:
        - id
        - entity
        - name
      properties:
        clustr_saved_view_id:
          type: string
          description: >-
            The saved view's Clustr ID, for example
            `view_6z690mh248rn76wv5ykft2dd9b`. Use it to refer to

            this saved view.
          example: view_6z690mh248rn76wv5ykft2dd9b
        clustr_workspace_id:
          type: string
          description: >-
            The workspace's Clustr ID, for example
            `ten_wjxw7ak147g7j0ba9v522f5kg6`.
          example: ten_wjxw7ak147g7j0ba9v522f5kg6
        clustr_user_id:
          type: string
          description: >-
            The Clustr ID of the member who owns the view, for example
            `usr_n983cfnsr2hzbrgtq0h8vf95hs`.

            Empty means the workspace owns the view, and every member of the
            workspace may edit it.
          example: usr_n983cfnsr2hzbrgtq0h8vf95hs
        id:
          type: string
          format: uuid
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_saved_view_id`.
        tenant_id:
          type: string
          format: uuid
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_workspace_id`.
        user_id:
          type: string
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_user_id`.
        entity:
          type: string
          enum:
            - accounts
            - people
            - connectors
        name:
          type: string
        filters:
          type: object
          description: >-
            The view's filter, sort and search state, as an opaque object. Send
            it back exactly as you received it, and build it by saving a view in
            the app.
        is_shared:
          type: boolean
          description: >-
            Visible to the whole workspace when true. Only the owner may edit or
            delete it either way.
        is_pinned:
          type: boolean
          description: Shown in the sidebar navigation tree.
        is_owner:
          type: boolean
          description: Whether the caller may edit or delete this view.
        memberQuery:
          type: string
          nullable: true
          description: >-
            The list query this view stands for, set by the app or client that
            saves the view. Null when the view was saved without one; such a
            view can drive a Workflow once it is saved again with a
            `memberQuery`.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: The API key you created on the API settings page of the Clustr app.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.