Get user preferences

get

/apiplatform/administration/v1/preferences/user

Returns the preferences for the user accessing this resource. The response also contains HATEOAS links to related operations.

All authenticated users can access this resource.

Request

Supported Media Types
Query Parameters
  • Collection Format: csv
    Pass optional fields, separated by commas, in this parameter to return them in the response. See the operation's description for a list of field values.
Back to Top

Response

Supported Media Types

200 Response

The user's preferences.
Body ()
Root Schema : UserPreferencesResponse
Match All
Show Source
Nested Schema : UserPreferences
Type: object
Show Source
Nested Schema : LinksResponseFeature
Type: object
Show Source
Nested Schema : AccessibilityUserPreferences
Type: object
Show Source
  • Default Value: false
    Indicates if high contrast mode is enabled in the in the Management Portal. Value is false if high contrast mode is disabled and true if enabled.
  • Default Value: false
    Indicates if large fonts are displayed in the Management Portal. Value is false if default font sizes are displayed and true if large fonts are displayed.
  • Default Value: false
    Indicates if screen reader mode is enabled in the Management Portal. Value is false if screen reader mode is disabled and true if enabled.
Nested Schema : TimeZoneUserPreferences
Type: object
Show Source
  • The ID of the current platform time zone. This must be a valid Java time zone.
  • Default Value: true
    Indicates if all times and dates are displayed using the platform time zone, regardless of the user's time zone settings. If disabled, users' browser time zone settings are used to display times and dates. Value is true if times and dates are displayed using the platform time zone and false if times and dates are displayed using each user's time zone.

403 Response

Forbidden.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : errorDetails
Type: array
additional errors
Show Source

500 Response

Unexpected error.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : errorDetails
Type: array
additional errors
Show Source
Back to Top

Examples

The following example shows how to retrieve the requesting preferences of the user in Oracle API Platform Cloud Service by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -i -X GET 
-u apicsadmin:password
https://example.com/apiplatform/administration/v1/preferences/user

Example of Response Headers

The following shows an example of the response headers.

HTTP/1.1 200 OK
Server: Oracle-Traffic-Director/12.2.1.0.0
Date: Mon, 02 Jan 2017 13:33:18 GMT
Content-length: 392
Content-type: application/json
X-oracle-dms-ecid: o64xd1HrR00000000
X-oracle-dms-rid: 0:1
Via: 1.1 otd_opc
Proxy-agent: Oracle-Traffic-Director/12.2.1.0.0

Example of Response Body

The following example shows the contents of the response body in JSON format, including the current preferences of the user and HATEOAS links to related operations:

{
  "accessibility": {
    "largeFonts": false,
    "highContrast": true,
    "screenReader": false
  },
  "timeZone": {
    "timeZoneId": "Africa/Abidjan",
    "usePlatformTimeZone": false
  },
  "links": [
    {
      "method": "GET",
      "rel": "canonical",
      "href": "https://example.com:443/apiplatform/administration/v1/preferences/user"
    },
    {
      "method": "POST",
      "rel": "edit",
      "href": "https://example.com:443/apiplatform/administration/v1/preferences/user"
    }
  ]
}
Back to Top