Update Generation

put

/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/dimensions/{dimensionName}/generations/{generationNumber}

Updates and returns generation details of a dimension, based on the specified generation number, application, and database.

Request

Path Parameters
Body ()

Generation details.

Root Schema : GenerationLevel
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK

Generation details updated successfully, including links to get or edit the generation.

Body ()
Root Schema : GenerationLevel
Type: object
Show Source

400 Response

Bad Request

Failed to update the generation. The application name, database name, dimension name, or generation number may be incorrect.

415 Response

Not Acceptable

The media type isn't supported or wasn't specified.

500 Response

Internal Server Error.

Back to Top

Examples

The following example shows how to update generation details in an Essbase cube.

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

curl -X PUT "https://myserver.example.com:9001/essbase/rest/v1/applications/ASOSamp/databases/Basic/dimensions/Geography/generations/3?links=none" -H Accept:application/json -H Content-Type:application/json -d '{"name": "Western US States"}' -u %User%:%Password%

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
  "name" : "Western US States",
  "actualName" : "Western US States",
  "number" : 3
}
Back to Top