Perform Scenario Action
/essbase/rest/v1/scenarios/{id}
Performs the specified scenario workflow action. Common actions are submit to submit a scenario for approval, approve to approve a scenario, reject to reject it, and apply to overwrite the base data with the scenario data. Additional actions include copy, refresh, and clear.
Request
- application/json
- application/xml
-
id(required): integer(int64)
Scenario ID.
-
action: string
Valid values are
submit,approve,reject,apply,copy,refresh, andclear. -
overwrite: boolean
Optional overwrite parameter, applicable only when action is
refresh. Iftrue, when the base and scenario data have different values, the base value overwrites the scenario changes. Default isfalse.Default Value:false
Action parameters. Copy options are applicable only in case of copy. Comment is applicable only for workflow actions.
Response
- application/json
- application/xml
200 Response
OK
Scenario action performed successfully.
object-
application:
string
-
appliedTime:
integer(int64)
-
approvers:
array approvers
-
commentsCount:
integer(int32)
-
createdTime:
integer(int64)
-
database:
string
-
description:
string
-
dueDate:
integer(int64)
-
id:
integer(int64)
-
links:
array links
-
name:
string
-
overdue:
boolean
-
owner:
string
-
participants:
array participants
-
priority:
string
Allowed Values:
[ "LOW", "MEDIUM", "HIGH" ] -
refreshedTime:
integer(int64)
-
sandbox:
string
-
scenarioUser:
boolean
-
scripts:
array scripts
-
state:
string
Allowed Values:
[ "NEW", "SUBMITTED", "APPROVED", "REJECTED", "APPLIED" ] -
submittedTime:
integer(int64)
-
useCalculatedValues:
boolean
object-
content:
string
Script contents.
-
type:
string
Allowed Values:
[ "REFRESH", "CLEAR", "APPLY" ]
400 Response
Bad Request
Failed to perform scenario action. The scenario ID may be invalid.
500 Response
Internal Server Error.