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
-
opc-request-id: string
The client request ID for tracing. The only valid characters for request IDs are letters, numbers, underscore, and dash.
One or more Approval Task decisions.
Root Schema : ApprovalDecisionDetails
Type:
object
A list of Approval Task decisions.
Show Source
-
decisions(required):
array decisions
List of Approval Task decisions.
Nested Schema : decisions
Type:
array
List of Approval Task decisions.
Show Source
-
Array of:
object ApprovalDecision
An individual Approval Task decision.
Nested Schema : ApprovalDecision
Type:
object
An individual Approval Task decision.
Show Source
-
action(required):
string
Allowed Values:
[ "APPROVE", "REJECT" ]
APPROVE or REJECT -
comment(required):
string
Justification for decision
-
taskId(required):
string
The Approval Task ID for the decision.
Response
Supported Media Types
- application/json
200 Response
Successfully updated some or all of the approval tasks.
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : ApprovalDecisionResults
Type:
object
Response details of a set of Approval Task decisions.
Show Source
-
failures(required):
array failures
List of failures generated while creating task actions.
Nested Schema : failures
Type:
array
List of failures generated while creating task actions.
Show Source
-
Array of:
object ApprovalDecisionFailure
Failure details of an Approval Task decision.
Nested Schema : ApprovalDecisionFailure
Type:
object
Failure details of an Approval Task decision.
Show Source
-
errorMessage:
string
Cause of the error.
-
taskId(required):
string
Unique identifier of the task which failed to update.
400 Response
Bad Request
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
401 Response
Unauthorized
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
404 Response
Not Found
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
409 Response
Conflict
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
429 Response
Too Many Requests
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
500 Response
Internal Server Error
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
Default Response
Unknown Error
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
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": [] }