Get Approvals for User

Get approvals for the user specified by the token.
GET https://instance.securid.com/aveksa/command.submit?cmd=getApprovalsForUser
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
getApprovalsForUser | |
format | properties - (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. |
page-size | The number of approvals to return for this page. (Default 20) |
sort | Sort the approvals by due date (asc | desc). (Default asc) |
start-page | The page number to start from. (Default 1) |
state | The state of the approvals to retrieve (pending | completed | all). (Default pending) |
Headers
Bearer token | |
Accept | application/json |
Content-Type | application/json |
Response
Parameters
The command returns detailed information about the approval in XML format.
Examples
Request
- Curl
curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=getApprovalsForUser&format=json" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"
Response
- 200
- 401
<?xml version="1.0" encoding="UTF-8"?>
<getApprovalsForUser>
<NumApprovals>0</NumApprovals>
</getApprovalsForUser>
<html>
<head>
<title>Error</title>
</head>
<body>The token is not valid for the command 'getApprovalsForUser'. Token is invalid or expired</body>
</html>