Import Rule
/essbase/rest/v1/utils/rules/actions/import
Imports a rules file.
Request
- application/json
- application/xml
-
overwrite: boolean
Optional overwrite specification. Default value is false, meaning if the rules file already exists, an error is returned. When set to true, if the rule file already exists, it will be overwritten.
Default Value:false
File path information: source and destination catalog paths.
Response
- application/json
- application/xml
200 Response
OK
Rules file imported successfully.
400 Response
Bad Request
Failed to import rules file. The file path information may be incorrect.
500 Response
Internal Server Error.
Examples
The following example shows how to import an Essbase data load or dimension build rule file definition to create a new rule.
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 Commands
The following script imports a data load rule definition to Sample Basic.
call properties.bat
curl -X POST https://myserver.example.com:9001/essbase/rest/v1/utils/rules/actions/import -H "Accept:application/json" -H "Content-Type:application/json" -d '{ "from": "/shared/dataload_rul.json", "to": "/applications/Sample/Basic/newdataload.rul" }' -u %User%:%Password%