---
title: "PATCH /api/database/view/{view_id}/premium"
method: PATCH
path: "/api/database/view/{view_id}/premium"
tags: ["Database table views"]
---

# PATCH /api/database/view/{view_id}/premium

`PATCH /api/database/view/{view_id}/premium`

Sets view attributes only available for premium users.

## Path parameters

- `view_id` integer, required

## Request body

- PatchedUpdatePremiumViewAttributes
  - `show_logo` boolean
  - `allow_public_export` boolean

## Response `200`

- View
  - `id` integer, required
  - `table_id` integer, required
  - `name` string, required
  - `order` integer, required
  - `type` string, required
  - `table` TableWithoutDataSync, required
    - `id` integer, required
    - `name` string, required
    - `order` integer, required — Lowest first.
    - `database_id` integer, required
  - `filter_type` 'AND' | 'OR' — * `AND` - And * `OR` - Or
  - `filters` ViewFilter[]
    - `id` integer, required
    - `view` integer, required — The view to which the filter applies. Each view can have his own filters.
    - `field` integer, required — The field of which the value must be compared to the filter value.
    - `type` string, required — Indicates how the field's value must be compared to the filter's value. The filter is always in this order `field` `type` `value` (example: `field_1` `contains` `Test`).
    - `value` string — The filter value that must be compared to the field's value.
    - `preload_values` object, required — Can contain unique preloaded values per filter. This is for example used by the `link_row_has` filter to communicate the display name if a value is provided.
    - `group` integer, nullable — The id of the filter group this filter belongs to. If this is null, the filter is not part of a filter group.
  - `filter_groups` ViewFilterGroup[]
    - `id` integer, required
    - `filter_type` 'AND' | 'OR' — * `AND` - And * `OR` - Or
    - `view` integer, required — The view to which the filter group applies to. Each view can have its own filter groups.
    - `parent_group` integer, nullable
  - `sortings` ViewSort[]
    - `id` integer, required
    - `view` integer, required — The view to which the sort applies. Each view can have his own sortings.
    - `field` integer, required — The field that must be sorted on.
    - `order` 'ASC' | 'DESC' — * `ASC` - Ascending * `DESC` - Descending
    - `type` string — Indicates the sort type. Will automatically fall back to `default` if incompatible with field type.
    - `priority` integer, required — Position of this sorting in the ordering chain. The sorting with the lowest priority is applied first.
  - `group_bys` ViewGroupBy[]
    - `id` integer, required
    - `view` integer, required — The view to which the group by applies. Each view can have his own group bys.
    - `field` integer, required — The field that must be grouped by.
    - `order` 'ASC' | 'DESC' — * `ASC` - Ascending * `DESC` - Descending
    - `width` integer — The pixel width of the group by in the related view.
    - `type` string — Indicates the sort type. Will automatically fall back to `default` if incompatible with field type.
    - `priority` integer, required — Position of this group by in the ordering chain. The group by with the lowest priority is applied first.
  - `decorations` ViewDecoration[]
    - `id` integer, required
    - `view` integer — The view to which the decoration applies. Each view can have his own decorations.
    - `type` string — The decorator type. This is then interpreted by the frontend to display the decoration.
    - `value_provider_type` string — The value provider type that gives the value to the decorator.
    - `value_provider_conf` unknown
    - `order` integer — The position of the decorator has within the view, lowest first. If there is another decorator with the same order value then the decorator with the lowest id must be shown first.
  - `default_row_values` ViewDefaultValue[]
    - `id` integer, required
    - `field` integer, required
    - `enabled` boolean — Whether this default value is active.
    - `value` unknown
    - `field_type` string, nullable, required — The field type identifier at the time the value was stored. Used to detect incompatibility when the field type changes.
    - `function` string, nullable — Optional function name (e.g. 'now') to resolve the default value dynamically at row creation time instead of using the stored value.
  - `filters_disabled` boolean — Allows users to see results unfiltered while still keeping the filters saved for the view.
  - `public_view_has_password` boolean, required — Indicates whether the public view is password protected or not. :return: True if the public view is password protected, False otherwise.
  - `show_logo` boolean
  - `allow_public_export` boolean — Indicates whether it's allowed to export a publicly shared view.
  - `ownership_type` string, required
  - `owned_by_id` integer

## Other responses

- `400`
- `404`

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/versions/0c490e5b0c7f/schema)
