Update system settings
/api/20210901/system/settings
Request
There are no request parameters for this operation.
- application/json
array
-
Array of:
object UpdateSettingsDetails
An object representing the settings update payload.
object
Response
200 Response
400 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
401 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
403 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
409 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
500 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
Examples
These examples show you how to update one or more system settings in Oracle Analytics Server.
- Example 1 - Update system settings using a JSON file
- Example 2 - Update system settings directly
Example 1 Update system settings using a JSON file
In this example, you restrict the
size (KB) of emails sent from Oracle Analytics Server and the number of email recipients.
The system settings that control this behavior are Maximum Email Size
(KB) and Maximum Number of Recipients per Email. The
REST API keys for these settings are EmailMaxEmailSizeKB
and
EmailMaxRecipients
.
cURL Example
First, obtain REST API key values for the system settings you want to update. See REST API Keys for System Settings.
update_system_settings.json
with a payload that looks like
this.{ "items":[ { "key": "EmailMaxRecipients", "value": "512" }, { "key": "EmailMaxEmailSizeKB", "value": "10240" } ] }
{ "items":[ { "key": "EmailMaxRecipients", "value": "512" } ] }
Run the cURL command calling the JSON file (for example, update_system_settings.json
):
curl -i \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --request PUT 'https://<hostname>/api/20210901/system/settings' \ --data @update_system_settings.json
Example of Response Header
Not applicable.
Example of Response Body
If successful, the response body returns the 200
response code. For
example:
Status 200
Example 2 Update system settings directly
In this example, you restrict the number of email recipients through the
system setting Maximum Number of Recipients per Email. The REST API
key for this setting is EmailMaxRecipients
.
cURL Example
First, obtain REST API key values for the system setting you want to update. See REST API Keys for System Settings.
{ "items":[ { "key": "EmailMaxRecipients", "value": "512" } ] }
Run the cURL command :
curl -i \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --request PUT 'https://<hostname>/api/20210901/system/settings' \ --data '{"items":[ { \ "key": "EmailMaxRecipients", \ "value": "512" \ } ] }'
Example of Response Header
Not applicable.
Example of Response Body
If successful, the response body returns the 200
response code. For
example:
Status 200