Skip to content

Preferences

2 endpoints.

GEThttp://localhost:3000/api/preferences

The caller’s own library-view preferences, falling back to the defaults for any value that has never been set. An unauthenticated caller gets the defaults — not another user’s settings.

Responses

200The effective preferences.
{
  "library_sortby": "",
  "library_sortdir": ""
}

Your own instance address. Requests go from this browser straight to it.

PUThttp://localhost:3000/api/preferences

Stores the caller’s library-view preferences. Fields omitted from the request are left as they are. Requires an authenticated caller; an unauthenticated one is refused rather than silently writing to a shared bucket.

Request body

application/json

Responses

200Stored; the body echoes the resulting values.
{
  "library_sortby": "",
  "library_sortdir": ""
}
403No authenticated caller to scope the preferences to.
{
  "error": "",
  "operation": "",
  "success": 0,
  "successMessage": ""
}

This endpoint needs an administrator token — a guest (read-only) token is refused by the server.

Your own instance address. Requests go from this browser straight to it.