Copy Filter
/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/filters/filterops/copy
Copies a filter in the specified application and database and returns the new filter.
Request
- application/json
- application/xml
-
applicationName(required): string
Application name.
-
databaseName(required): string
Database name.
Filter copy details.
object
-
from(required):
string
Original filter name.
-
to(required):
string
New filter name.
Response
- application/json
- application/xml
200 Response
OK
The filter was copied successfully. Returns filter details and links to get, edit, or delete the filter, and to get the filter rows.
400 Response
Bad Request
Failed to copy the filter. The application name, database name, or filter name may be incorrect, or a filter with the specified name already exists.
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 copy an Essbase security filter.
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 POST "https://myserver.example.com:9001/essbase/rest/v1/applications/Efficient/databases/UserFilters/filters/filterops/copy?links=none" -H "Accept: application/json" -H "Content-Type: application/json" -d '{"from": "dslookupfilter", "to": "dynfilter"}' -u %User%:%Password%
Example of Response Body
{
"name" : "dynfilter"
}