Using Approval REST APIs
Approval REST APIs
The ApprovalSignatureResource resource provides the following APIs:
API | Description |
---|---|
Returns a list of all approval requests assigned to all users. | |
Returns all the approval requests that contain the specified approver. | |
Returns the approval requests that contain the specified entry ID such as approval ID. | |
Returns the details of the single specified approval ID | |
Returns the approval request signature of the specified approval ID. | |
Updates an approval request with the specified status. | |
Searches for approval requests that contain the specified user and search text. |
Sample response
All the GET Approval APIs have similar response format. The following code snippet illustrates the a sample JSON that is returned by a GET Approval REST API:
{
"totalSize": 1,
"data": [
{
"actionDate": null,
"summary": "testing sig",
"requester": "DellAdmin",
"priority": "Normal",
"application": "com.example.taskmanager:TestRD",
"status": "Pending",
"request": "000000000000401",
"signatureID": "000000000000301",
"createDateSig": "2017-03-29T10:41:19.000Z",
"approverSignature": null,
"alternateSignature": null,
"process": "testWFAD",
"order": 1,
"approvalID": "000000000000302",
"nextGlobalEscalationTime": null,
"signatureInstanceID": "AGGAABDUC2YGIAONKO2VOMOQCICO9T|AGGAABDUC2YGIAONKO2WOMOQCICOK9",
"assigneeGroupPermissions": "402;0;",
"completed": null,
"statusDtl": "Pending",
"approvers": "DellAdmin;testing;testingDellAdmin;testing:DellAdmin",
"processInstanceId": "AGGJ980ICQU7QAONJLZLOM3OD1EOL4",
"modifiedDateSig": "2017-03-29T10:41:19.000Z",
"notes": null,
"nextActionEscalationDate": null,
"sigTermStateDate": null,
"justification": null,
"otherDetail1": null,
"otherDetail2": null,
"otherDetail3": null,
"otherDetail4": null,
"requireJustificationOnRejection": "No",
"justificationField": null,
"canReassign": "Yes",
"toolTip": null
}
]
}
"totalSize": 1,
"data": [
{
"actionDate": null,
"summary": "testing sig",
"requester": "DellAdmin",
"priority": "Normal",
"application": "com.example.taskmanager:TestRD",
"status": "Pending",
"request": "000000000000401",
"signatureID": "000000000000301",
"createDateSig": "2017-03-29T10:41:19.000Z",
"approverSignature": null,
"alternateSignature": null,
"process": "testWFAD",
"order": 1,
"approvalID": "000000000000302",
"nextGlobalEscalationTime": null,
"signatureInstanceID": "AGGAABDUC2YGIAONKO2VOMOQCICO9T|AGGAABDUC2YGIAONKO2WOMOQCICOK9",
"assigneeGroupPermissions": "402;0;",
"completed": null,
"statusDtl": "Pending",
"approvers": "DellAdmin;testing;testingDellAdmin;testing:DellAdmin",
"processInstanceId": "AGGJ980ICQU7QAONJLZLOM3OD1EOL4",
"modifiedDateSig": "2017-03-29T10:41:19.000Z",
"notes": null,
"nextActionEscalationDate": null,
"sigTermStateDate": null,
"justification": null,
"otherDetail1": null,
"otherDetail2": null,
"otherDetail3": null,
"otherDetail4": null,
"requireJustificationOnRejection": "No",
"justificationField": null,
"canReassign": "Yes",
"toolTip": null
}
]
}
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*