Act on one or more Approval Tasks.

post

/access-governance/access-controls/20250331/approvals

Act on one or more Approval Tasks in bulk.

Request

Header Parameters
  • The client request ID for tracing. The only valid characters for request IDs are letters, numbers, underscore, and dash.
Body ()
One or more Approval Task decisions.
Root Schema : ApprovalDecisionDetails
Type: object
A list of Approval Task decisions.
Show Source
Nested Schema : decisions
Type: array
List of Approval Task decisions.
Show Source
Nested Schema : ApprovalDecision
Type: object
An individual Approval Task decision.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successfully updated some or all of the approval tasks.
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : ApprovalDecisionResults
Type: object
Response details of a set of Approval Task decisions.
Show Source
Nested Schema : failures
Type: array
List of failures generated while creating task actions.
Show Source
Nested Schema : ApprovalDecisionFailure
Type: object
Failure details of an Approval Task decision.
Show Source

400 Response

Bad Request
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

401 Response

Unauthorized
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

404 Response

Not Found
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

409 Response

Conflict
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

429 Response

Too Many Requests
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

500 Response

Internal Server Error
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

Default Response

Unknown Error
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source
Back to Top

Examples

The following example shows how you can approve or reject an approval task for a request task. Replace placeholder values with actual values before running the sample command.

Before approving or rejecting an approval task for a request task, you need to run the following APIs to fetch the required data:
  • List Approvals - [GET] {BasePath}/approvals/{accessRequestId}
  • List Identities - [GET] {BasePath}/identities
.

cURL Request Example

curl -i -X POST \
   -H "Authorization:Bearer <your-access-token>" \
   -H "Content-Type:application/json" \
   -d \
'{
    "decisions": [
        {
            "taskId": "62555a75-30da-xxxxx-997d-xxxx",
            "action": "APPROVE",
            "comment": "Needed to perform the job"
        }
    ]
}' \
 '<${service-instance-url}/access-governance/access-controls/20250331/approvals>'

Submit the POST request

${service-instance-url}/access-governance/access-controls/${version}/approvals

Example Request Payload

{
    "decisions": [
        {
            "taskId": "62555a75-30da-xxxxx-997d-xxxx",
            "action": "APPROVE",
            "comment": "Needed to perform the job"
        }
    ]
}

Example of the Response Code

You'll receive 200 OK response along with the following response body:


{ "failures": [] }
Back to Top