Execute Action On Approval Request

Execute Action On Approval Request

Approves or Rejects the approval request

Request
URI
POST
https://vra-interop-222-139.lvn.broadcom.net/approval/api/approvals/action
COPY
Query Parameters
string
apiVersion
Optional

The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /approval/api/about

Header Parameters
string
Accept
Optional

Accept


Request Body
ApprovalActionRequest of type(s) application/json
Required
{
    "action": "string",
    "comment": "string",
    "currentLevelApproval": false,
    "fullApproval": false,
    "itemId": "string"
}
string
action
Optional

Approval request action

Possible values are : APPROVE, REJECT, CANCEL, APPROVE, REJECT,
string
comment
Optional

Approver comment on action

boolean
currentLevelApproval
Optional

Flag for approval admin to approve only current level

boolean
fullApproval
Optional

Flag for approval admin to provide full approval

string
itemId
Optional

Approval request id

Authentication
This operation uses the following authentication methods.
Responses
200

Success - Successfully approved/rejected

Returns ApprovalActionRequest of type(s) application/json
"ApprovalActionRequest Object"
string
action
Optional

Approval request action

Possible values are : APPROVE, REJECT, CANCEL, APPROVE, REJECT,
string
comment
Optional

Approver comment on action

boolean
currentLevelApproval
Optional

Flag for approval admin to approve only current level

boolean
fullApproval
Optional

Flag for approval admin to provide full approval

string
itemId
Optional

Approval request id


400

Approval request is not in pending state or user already taken action(approve/reject) on the approval request

Operation doesn't return any data structure

401

Unauthorized

Operation doesn't return any data structure

403

Access Denied - Doesn't have permission to approve/reject the specified approval request

Operation doesn't return any data structure

404

Not Found

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/approval/api/approvals/action