Transition request to a new status
post
/epm/rest/v1/requests/{requestId}/transitions
Performs a workflow action on a request, such as submitting, approving, or rejecting it.
Supply the transition action and any required comment in the request body. Set `transitionWithWarning` to true to allow the transition when all custom validation failures have WARNING severity.
The action runs as a background job. HTTP 202 means the action was accepted for processing. Follow the response's `results` link to check the job status and results.
Requires permission to perform the specified action on the request.
Request
Path Parameters
transition action
Root Schema : TransitionJson
Type:
Show Source
object-
action(required):
string
Allowed Values:
[ "SUBMIT", "APPROVE", "PUSHBACK", "REJECT", "WITHDRAW", "RECALL", "COMMIT", "CLOSE" ]transition actionExample:SUBMIT -
comment:
string
commentExample:
Looks OK. -
transitionWithWarning:
boolean
Indicates that the transition to the next stage can proceed even if there are custom validation failures, as long as all failures are WARNING severity.
Response
Supported Media Types
- application/json
202 Response
Accepted, transition processing
Root Schema : IdNameLink
Type:
Show Source
object-
description:
string
Read Only:
true -
id:
string(uuid)
-
links:
array links
-
name:
string
400 Response
Bad request. If submission fails because the request contains no items, the response includes requestId, itemCount, and skippedRowCount.
Root Schema : RestErrorMessage
Type:
Show Source
object-
errorCode:
integer(int32)
-
itemCount:
integer(int32)
Number of request items. Present when a request has no items.
-
link:
object Link
-
message:
string
-
moreInfo:
string
-
operation:
string
-
requestId:
string(uuid)
Identifier of the request that could not be submitted. Present when a request has no items.
-
skippedRowCount:
integer(int64)
Number of skipped import rows for the request. Present when a request has no items.
-
status:
string
-
statusCode:
integer(int32)
403 Response
Forbidden
404 Response
Not Found
Examples
The following example shows how to transition a request by submitting a post request on the REST resource using cURL.
cURL Command
curl --user epm_cloud_user -X POST -H 'Content-Type: application/json' \ https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/e1847bbc-f2d2-46a2-af3d-2dadcf9d7bd4/transitions \ -d @example_request_payload.json
Example of Request Body
The following shows an example of the request body in JSON format.
{
"action": "APPROVE",
"comment": "This request looks good to me.",
"transitionWithWarning": false
}
Example of Response Body
The following shows an example of the response body in JSON format.
{
"links": [
{
"rel": "results",
"href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/jobRuns/665f8de2-ef1d-41aa-ade7-7dfcd6196cba"
}
]
}