Skip to main content

Get Approval Details

Get the details of a particular approval. The user specified by the token must have access to the requested approval.

GET https://instance.securid.com/aveksa/command.submit?cmd=getApprovalDetails

caution

This web service has been replaced with the command Get Work Items for User. Future releases may remove the deprecated web service command.

Request

Parameters

getApprovalDetails
formatproperties - (Default) key=value. most useful when requesting a single object. If multiple objects are returned, values is a csv. ie key=value1,value2,value3 where value1 is the value for the first object, value2 is the value for the 2nd object, etc.

json - Useful format for parsing into javascript or other languages. See www.json.org for details.
The id of the approval work item, retrieved from Get Approvals for User.

Headers

Bearer token
Acceptapplication/json
Content-Typeapplication/json

Response

Parameters

The command returns detailed information about the approval in XML format.

Examples

Request

curl -K -X GET  \
"https://instance.securid.com/aveksa/command.submit?cmd=getApprovalDetails&format=json&approval-id=id" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"

Response

<?xml version="1.0" encoding="UTF-8"?>
<getApprovalDetails>
<Approval>
<EmailApprovalEnabled>false</EmailApprovalEnabled>
<LineItemApprovalEnabled>true</LineItemApprovalEnabled>
<ExtraFields/>
<WorkItemId>11:WPDS:1</WorkItemId>
<WorkItemName>Supervisor Approval</WorkItemName>
<WorkItemDueDate>2022-04-07 14:30:31.0</WorkItemDueDate>
<WorkItemCompletedDate>2022-04-04 14:30:34.0</WorkItemCompletedDate>
<WorkItemCompletedByName>System,</WorkItemCompletedByName>
<WorkItemReassignDisabled>false</WorkItemReassignDisabled>
<WorkItemState>Accepted</WorkItemState>
<RequestId>1</RequestId>
<RequestName>00001</RequestName>
<RequestedByName>Aishwarya Rao</RequestedByName>
<RequestDescription>System Admin Role - Bhagat</RequestDescription>
<RequestNotes/>
<RequestHasAttachments>false</RequestHasAttachments>
<Actions>
<ActionName>Accepted</ActionName>
</Actions>
</Approval>
</getApprovalDetails>