Update Application Configurations
/essbase/rest/v1/applications/{applicationName}/configurations
Updates the application configurations and returns the updated configuration details.
Request
- application/json
- application/xml
-
applicationName: string
Application name.
Configuration property value entries.
object
-
configured(optional):
boolean
If true, the configuration property is enabled.
If false, the configuration property is turned off.
-
description(optional):
string
A description of the configuration property.
-
example(optional):
string
Usage example for the configuration property. Example:
DATACACHESIZE 90M
-
key(optional):
string
Filter key to refine the configuration property results. For example if
key=A*
, all configuration properties beginning with the letter A are returned. Default is * -
links(optional):
array links
-
syntax(optional):
string
The syntax for the configuration property. Example:
DATACACHESIZE n
-
value(optional):
string
Value for the configuration property. Example:
1024
Response
- application/json
- application/xml
200 Response
OK
Configurations were updated successfully. Returns the configuration details and the links to get, edit, or delete the configurations.
object
-
configured(optional):
boolean
If true, the configuration property is enabled.
If false, the configuration property is turned off.
-
description(optional):
string
A description of the configuration property.
-
example(optional):
string
Usage example for the configuration property. Example:
DATACACHESIZE 90M
-
key(optional):
string
Filter key to refine the configuration property results. For example if
key=A*
, all configuration properties beginning with the letter A are returned. Default is * -
links(optional):
array links
-
syntax(optional):
string
The syntax for the configuration property. Example:
DATACACHESIZE n
-
value(optional):
string
Value for the configuration property. Example:
1024
400 Response
Bad Request
Failed to update the configurations. The application name or configuration entries is invalid, or the given configuration property has not been added to the application.
415 Response
Not Acceptable
The media type isn't supported or wasn't specified.
500 Response
Internal Server Error.
Examples
The following example shows how to update the configuration currently set for the specified Essbase application. You can use an array to update multiple ocnfiguration properties at once.
This example uses cURL to access the REST API from a Windows shell script. The calling user's ID and password are variables whose values are set in properties.bat
.
Script with cURL Command
call properties.bat
curl -X PUT "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample_Dynamic/configurations?links=none" -H Accept:application/json -H Content-Type:application/json --data "@./updateconfigs.json" -u %User%:%Password%
Input JSON Data
The script above executes, on Sample_Dynamic Basic, the application configuration array specified in updateconfigs.json
. The input file has the following contents:
[
{
"key" : "HYBRIDBSOINCALCSCRIPT",
"value" : "NONE",
"configured" : true
}, {
"key" : "ASODYNAMICAGGINBSO",
"value" : "FULL",
"configured" : true
}
]
Example of Response Body
The following example shows the contents of the response body in JSON format.
[ {
"key" : "HYBRIDBSOINCALCSCRIPT",
"value" : "NONE",
"configured" : false
}, {
"key" : "ASODYNAMICAGGINBSO",
"value" : "FULL",
"configured" : false
} ]