ApproveProcessInstance
Approves or rejects a specified approval process instance.
Operation description
Request description
This operation allows you to approve or reject a specified approval process instance by specifying the
ProcessInstanceIdand approval information, includingApprovalCommentandApprovalAction.You can set
ApprovalActiontoAgreeorDenyto approve or reject the request.The
ApprovalCommentparameter is required and used to record specific comments for the approval.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:ApproveProcessInstance |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProcessInstanceId |
string |
Yes |
The process instance ID. Approval tickets from both the new and legacy Security Center are supported. Call the ListPendingApprovals operation with the same caller identity and filter the results by the |
332066440109224007 |
| ApprovalComment |
string |
Yes |
The approval comment. |
Approve authorization |
| NewExpiration |
integer |
No |
The new expiration time of the authorization. The value is a timestamp in milliseconds. |
1782541464000 |
| ApprovalAction |
string |
Yes |
The approval action. Valid values:
Valid values:
|
Agree |
| ClientToken |
string |
No |
The idempotency token. A UUID is recommended. |
1AFAE64E-D1BE-432B-A9***** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. You can use this ID to locate logs and troubleshoot issues. |
0bc5df3a17***903790e8e8a |
Examples
Success response
JSON format
{
"RequestId": "0bc5df3a17***903790e8e8a"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.