---
title: "Update Display Preferences."
method: POST
path: "/DisplayPreferences/{displayPreferencesId}"
tags: ["DisplayPreferences"]
---

# Update Display Preferences.

`POST /DisplayPreferences/{displayPreferencesId}`

## Path parameters

- `displayPreferencesId` string, required — Display preferences id.

## Query parameters

- `userId` string, uuid, required — User Id.
- `client` string, required — Client.

## Request body

- DisplayPreferencesDto — Defines the display preferences for any item that supports them (usually Folders).
  - `Id` string, nullable — Gets or sets the user id.
  - `ViewType` string, nullable — Gets or sets the type of the view.
  - `SortBy` string, nullable — Gets or sets the sort by.
  - `IndexBy` string, nullable — Gets or sets the index by.
  - `RememberIndexing` boolean — Gets or sets a value indicating whether [remember indexing].
  - `PrimaryImageHeight` integer — Gets or sets the height of the primary image.
  - `PrimaryImageWidth` integer — Gets or sets the width of the primary image.
  - `CustomPrefs` object, nullable — Gets or sets the custom prefs.
  - `ScrollDirection` 'Horizontal' | 'Vertical' — An enum representing the axis that should be scrolled.
  - `ShowBackdrop` boolean — Gets or sets a value indicating whether to show backdrops on this item.
  - `RememberSorting` boolean — Gets or sets a value indicating whether [remember sorting].
  - `SortOrder` 'Ascending' | 'Descending' — An enum representing the sorting order.
  - `ShowSidebar` boolean — Gets or sets a value indicating whether [show sidebar].
  - `Client` string, nullable — Gets or sets the client.

## Response `204`

Display preferences updated.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/jellyfin/apis/jellyfin-api.md) · [All operations](https://skmtc.net/jellyfin/apis/jellyfin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jellyfin/jellyfin-api/revisions/eb6f75af7066/schema)
