Skip to main content

Getting a List of an Approver’s Pending Requests

This section describes the App Broker REST API endpoint to return a list of pending requests for a given approver.

Endpoint Example:

[GET] http://localhost/esd/api/users/domain=appportal/user=jsmith/approvals

[GET] http://localhost/esd/api/users/domain=appportal/user=jsmith/approvals?status=pending

Response Body Example (Output):

[
{
"adGuid": "16cedd2b2c2e8c489d248ff0e7c3f8fa",
"approverName": "John Smith",
"approverUniqueName": "APPPORTAL\\jsmith",
"requests": [
{
"request": {
"requestID": 173,
"orderID": 166,
"packageID": 328,
"packageTitle": "Bhoomi v1.0",
"packageType": 328,
"requestType": "install",
"targetMachine": "ITAAPCCNET01",
"targetUser": "AutomationEndUser1",
"targetDeploymentTechnology": "SCCM2012",
"requestedOn": "2017-02-06T17:41:44"
},
"approvalType": "linear",
"approvers": [
{
"adGuid": "16cedd2b2c2e8c489d248ff0e7c3f8fa",
"approverLevel": 1,
"isCurrentApprover": true,
"action": "pending",
"availableActions": [
"approve",
"reject"
]
}
],
"approvalStatus": "pending"
}
]
}
]