Appearance
Get language and theme
About 167 wordsLess than 1 minute
apiUser Settings
2026-09-01
Returns the language and theme the signed-in user saved, the display user setting.
| Method and path | GET /plugin/datafor-modeler/api/user-settings/display |
| Permission | Any signed-in user (own settings) |
| Content type | None |
Parameters
None.
Example
curl -u analyst1:password "http://localhost:28080/datafor/plugin/datafor-modeler/api/user-settings/display"[
{"id": "language", "value": "en"},
{"id": "theme", "value": "light"}
]The response is the stored array itself, not wrapped in success/data. It is [] when the user never saved the setting; the console then uses the browser language and the light theme.
id | value |
|---|---|
language | A language tag such as en or zh. null means "use the browser language". |
theme | Interface theme, light by default. |
Errors
On a server error the response is {"success": false, "msg": "<reason>"}.
Related: Set language or theme