Approves a permission request order.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ApprovePermissionApplyOrder

The operation that you want to perform.

ApproveAction Integer Yes 1

The approval action. Valid values:

  • 1: Approve the permission request order.
  • 2: Reject the permission request order.
ApproveComment String Yes agree

The comment on the approval.

FlowId String Yes 48f36729-05f9-4a40-9286-933fd940f30a

The ID of the permission request order. You can call the ListPermissionApplyOrders operation to obtain the order ID.

RegionId String Yes cn-shanghai

The region ID. For example, the ID of the China (Shanghai) region is cn-shanghai, and that of the China (Zhangjiakou) region is cn-zhangjiakou. The system automatically determines the value of this parameter based on the endpoint that is used to call the operation.

Response parameters

Parameter Type Example Description
ApproveSuccess Boolean true

Indicates that the approval is successful.

RequestId String 0bc1ec92159376****

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ApprovePermissionApplyOrder
&ApproveAction=1
&ApproveComment=agree
&FlowId=48f36729-05f9-4a40-9286-933fd940f30a
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<RequestId>0bc1ec92159376****</RequestId>
<ApproveSuccess>true</ApproveSuccess>

JSON format

{
    "RequestId": "0bc1ec92159376****",
    "ApproveSuccess": true
}

Error codes

For a list of error codes, visit the API Error Center.