Update platform preferences

patch

/apiplatform/administration/v1/preferences/platform

Updates the platform preferences. Request must be in the merge patch format specified in RFC 7396.

Request

Supported Media Types
Body ()
Root Schema : PlatformPreferencesUpdate
Type: object
Show Source
Nested Schema : GeneralPlatformPreferences
Type: object
Show Source
Nested Schema : SecurityPreferences
Type: object
Show Source
Nested Schema : IdcsSecurity
Type: object
Show Source
Back to Top

Response

Supported Media Types

204 Response

Platform 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 the Oracle API Platform Cloud Service - Classic Platform settings 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 @preferences.json
https://example.com/apiplatform/administration/v1/preferences/platform

Example of Request Body

The following sample request body in JSON format (included with the request above in a file named preferences.json) updates the platform settings to disable the Developer Portal. All fields are optional; send only the field(s) you want to update in the request.

{
  "general": {
    "portalEnabled": 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:06:58 GMT
Content-type: application/json
X-oracle-dms-ecid: a7070a18-e96d-4e69-a511-58eafd07a798-0000c086
X-oracle-dms-rid: 0:1
Via: 1.1 otd_opc
Proxy-agent: Oracle-Traffic-Director/12.2.1.0.0
Back to Top