Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The user interface language

  • The user interface “culture” or date/time format

  • The time zone

URL

Code Block
(POSTGET) /api/persons/{uid}/settings?includeOptions=
(POSTGET) /api/persons/me/settings?includeOptions=

...

uid

The user ID. This is the user specified in the URL parameter.

int

uname

The user name.

string

language

The user interface language. This node includes code and print name. Example:

Code Block
"language": {
   "v": "en",
   "t": "English (en)"
}

object

culture

The date and time format. This node includes code and print name. Example:

Code Block
"culture": {
    "v": "fr-FR",
    "t": "French (France) (fr-FR)"
}

object

timezone

The time zone with detailed information.

Please see Time zone properties

object

languages

All possible UI languages. This node is included if parameter includeOptions is true.

A JSON array of options.:

Code Block
"languages": [
    { "v": "en", "t": "English" },
    { "v": "fr", "t": "French" },
    ...
]

object[]?

cultures

All possible date/time formats. This node is included if parameter includeOptions is true.

A JSON array of options.:

Code Block
"cultures": [
        {
            "v": "ab",
            "t": "Abkhazian"
        },
        {
            "v": "ach",
            "t": "Acholi"
        },
        {
            "v": "adh-UG",
            "t": "Adhola (Uganda)"
        }
    ...
]

object[]?

timezones

All possible time zones. This node is included if parameter includeOptions is true.

A JSON array of time zones. See Time zone properties for each time zone’s properties.

object[]?

EXAMPLES

A typical example for a user and when “includeOptions” is not set to true.

Code Block
{
	"uid": 562,
	"uname": "John Wick",
	"cid": 537,
	"language": {
		"v": "en",
		"t": "English (en)"
	},
	"culture": {
		"v": "fr-FR",
		"t": "French (France) (fr-FR)"
	},
	"timezone": {
		"id": "Romance Standard Time",
		"name": "(UTC+01:00) Brussels, Copenhagen, Madrid, Paris",
		"currentName": "Romance Daylight Time",
		"currentDate": "2022-05-11T17:28:12.4421194+00:00",
		"currentOffset": "02:00:00",
		"supportsDaylightSaving": true
	}
}