Update Level
/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/dimensions/{dimensionName}/levels/{levelNumber}
Updates and returns level details of a dimension, based on the specified level number, application, and database.
Request
-
applicationName: string
Application name.
-
databaseName: string
Database name.
-
dimensionName: string
Dimension name.
-
levelNumber: integer(int32)
Level number.
Level details.
Response
- application/json
- application/xml
200 Response
OK
Level details updated successfully, including links to get or edit the level.
400 Response
Bad Request
Failed to update the level. The application name, database name, dimension name, or level number may be incorrect.
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 level 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
call properties.bat
curl -X PUT "https://myserver.example.com:9001/essbase/rest/v1/applications/ASOSamp/databases/Basic/dimensions/Geography/levels/0?links=none" -H Accept:application/json -H Content-Type:application/json -d '{"name": "US ZIP Codes"}' -u %User%:%Password%
Example of Response Body
The following example shows the contents of the response body in JSON format.
{
"name" : "US ZIP Codes",
"number" : 0
}