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
Body ()
transition action
Root Schema : TransitionJson
Type: object
Show Source
  • Allowed Values: [ "SUBMIT", "APPROVE", "PUSHBACK", "REJECT", "WITHDRAW", "RECALL", "COMMIT", "CLOSE" ]
    transition action
    Example: SUBMIT
  • comment
    Example: Looks OK.
  • 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.
Back to Top

Response

Supported Media Types

202 Response

Accepted, transition processing
Body ()

400 Response

Bad request. If submission fails because the request contains no items, the response includes requestId, itemCount, and skippedRowCount.
Body ()
Root Schema : RestErrorMessage
Type: object
Show Source

403 Response

Forbidden

404 Response

Not Found
Back to Top

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"
    }
  ]
}
Back to Top