Update user preferences

patch

/apiplatform/administration/v1/preferences/user

Updates the preferences of the user accessing this resource. Request must be in the merge patch format specified in RFC 7396.

Request

Supported Media Types
Body ()
Root Schema : UserPreferencesUpdate
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.
Back to Top

Response

Supported Media Types

204 Response

Preferences successfully updated.

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 update preferences in Oracle API Platform Cloud Service for the user sending the request by submitting a PATCH request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -i -X PATCH 
-u apicsadmin:password
-H "Content-Type:'application/merge-patch+json"
-d @user.json
https://example.com/apiplatform/administration/v1/preferences/user

Example of Request Body

The following shown an example response body in JSON format (included with the request above in a file named user.json) enabling accessibility features for the user sending the request. You need to include only the preferences you wish to change in the request body.

{
  "accessibility": {
    "largeFonts": "true",
    "highContrast": "true",
    "screenReader": "true"
  }
}

Example of Response Headers

The following shows an example of the response headers.

HTTP/1.1 204 No Content
Server: Oracle-Traffic-Director/12.2.1.0.0
Date: Fri, 09 Feb 2018 10:19:49 GMT
Content-type: application/json
X-oracle-dms-ecid: a7070a18-e96d-4e69-a511-58eafd07a798-0000c08b
X-oracle-dms-rid: 0:1
Via: 1.1 otd_opc
Proxy-agent: Oracle-Traffic-Director/12.2.1.0.0
Back to Top