Update Application Variable
/essbase/rest/v1/applications/{applicationName}/variables/{variableName}
Updates the substitution variable in the specified application, and returns the updated variable.
Request
- application/json
- application/xml
-
applicationName(required): string
Application name.
-
variableName(required): string
Variable name.
Variable details.
Response
- application/json
- application/xml
200 Response
OK
Variable updated successfully, with links to get, edit, or delete.
400 Response
Bad Request
Failed to update the variable. The application name may be incorrect, the JSON for the variable may be incorrect, or the specified variable name may not exist.
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 an Essbase application-level variable.
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/variables/CurrMonth?links=none" -H Accept:application/json -H Content-Type:application/json -d '{"value": "Oct"}' -u %User%:%Password%
Example of Response Body
{
"name" : "CurrMonth",
"value" : "Oct"
}