Files
Nemera/docs/technical/api/users-management/Api.Settings.md
T

3.1 KiB

Lumina API

Settings

Get User Settings

Get User Settings Request

GET api/v1/users/me/settings

Returns the settings of the currently authenticated user.

Get User Settings Response

200 Ok
{
  "userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f",
  "isPaginationEnabled": true,
  "itemsPerPage": 50,
  "shouldIgnoreThePrefixForAlphaPicker": true,
  "isThemeCachingEnabled": true,
  "shouldAggregateMetadataWhenMissing": true,
  "shouldRenderPdfAsImages": false,
  "shouldPreserveBookStyles": true,
  "shouldKeepDownloadingWhilePaused": true,
  "shouldAutoplay": true,
  "isGaplessPlaybackEnabled": true,
  "replayGainMode": "Off",
  "streamingQuality": "Auto"
}

Update User Settings

Update User Settings Request

PUT api/v1/users/me/settings

Updates the settings of the currently authenticated user.

{
  "isPaginationEnabled": true,
  "itemsPerPage": 50,
  "shouldIgnoreThePrefixForAlphaPicker": true,
  "isThemeCachingEnabled": true,
  "shouldAggregateMetadataWhenMissing": true,
  "shouldRenderPdfAsImages": false,
  "shouldPreserveBookStyles": true,
  "shouldKeepDownloadingWhilePaused": true,
  "shouldAutoplay": true,
  "isGaplessPlaybackEnabled": true,
  "replayGainMode": "Off",
  "streamingQuality": "Auto"
}

Update User Settings Response

200 Ok

Get Playback State

Get Playback State Request

GET api/v1/users/me/settings/playback-state

Returns the playback state (the last volume and mute state) the player reported for the currently authenticated user. The values are written automatically by the player and are never surfaced as settings fields.

Get Playback State Response

200 Ok
{
  "volume": 0.75,
  "isMuted": false
}

Update Playback State

Update Playback State Request

PUT api/v1/users/me/settings/playback-state

Updates the playback state the player reported for the currently authenticated user. Both fields are required: the volume is a value between 0 and 1, and the mute state is a boolean. A request that omits either field, or sends a volume outside that range, is rejected with a 422 Unprocessable Entity.

{
  "volume": 0.75,
  "isMuted": false
}

Update Playback State Response

200 Ok