Skip to main content
Client settings store reader and UI preferences as key-to-setting maps. Global settings provide defaults for every user; user settings override a global value when the same key is present. Each generated operation returns { data, error, request, response }. Operations with parameters take a flat parameter object first and { client } second.

Global settings

List global settings

Unauthenticated requests receive only settings whose allowUnauthorized value is true. An authenticated response is still a map keyed by setting name, not an array.

Save global settings

Requires the ADMIN role.
saveGlobalSetting accepts a map. Every global value contains value and allowUnauthorized; setting the latter to false prevents unauthenticated clients from seeing the key:
Setting names are namespaced lower-case keys such as application.domain.key. The patch returns no content; inspect result.error if the save needs confirmation.

Delete global settings

Requires the ADMIN role.
Pass setting keys as the flat body parameter:
Deleting a global key removes the default; it does not remove a user’s override of the same key.

User settings

List user settings

Save user settings

User setting values use the same map shape without allowUnauthorized:

Delete user settings

Deleting a key exposes the global default again when one exists:

Workflows

Apply global defaults with user overrides

Both responses are maps. Copy global entries first, then overwrite them with user entries:

Reset user settings to defaults

Read the user map, collect its keys, then send those keys to the delete operation. An empty map needs no request:

Update one setting while preserving others

Because save accepts a map, send only the key being changed; other user settings remain untouched:

Handle failures

Generated calls do not throw for an HTTP error by default. A 401 indicates missing authentication; a 403 on global writes indicates that the caller is not an admin:
Use unwrap when your application wants exceptions; it throws KomgaApiError for an unsuccessful result. See Quickstart for the pattern.

Next steps

Users

Manage users and per-user preferences.

Admin

Configure server-level administrative settings.

Authentication

Configure the client used by these operations.