Java Sample – OptimizeASOCube.java for Profitability and Cost Management
Prerequisites: json.jar
Prerequisites: See Profitability and Cost Management Common Helper Functions for Java
public void optimizeASOCube() throws Exception {
JSONObject json = new JSONObject();
json.put("type", "createAggregations");
String urlString = serverUrl + "/epm/rest/"+ apiVersion + "/applications/" + applicationName+"/jobs/optimizeASOCube";
executeJob(urlString, "POST", json.toString());
}