Skip to content

Get approval requests

Ryan Newington edited this page Sep 12, 2016 · 2 revisions

Gets the approval requests for the authenticated user

Request

Method URL
GET /{version}/approvals/
GET /{version}/approvals/{status}

URL Parameters

Parameter name Description
{status} Retrieves approves with the specified status. Valid values are Pending, Approved, Rejected or Expired
{version} The version of the [[API

Request Body

This request type does not require a request body

Response

Response Codes

See the topic on error handling for the response codes that this API call can return.

Response Body

This method will return a JSON-formatted response containing the attributes and value pairs of the approval object

Examples

Get all the pending requests for the current user

Request

GET /v2/approvals/Pending

Response

HTTP/1.1 200 OK
[{
	"ObjectType": "Approval",
	"ObjectID": "8bd4466f-8682-4fe5-a976-09c0e5cdf21a",
	"ApprovalDuration": "2016-05-28T03:22:27.260",
	"ApprovalResponse": "c22afd20-8572-43d7-ad9a-d588f1d0cdf2",
	"ApprovalStatus": "Pending",
	"ApprovalThreshold": "1",
	"Approver": "6437407e-eb9f-4eb9-9be5-d37bbf0be67a",
	"ComputedActor": "6437407e-eb9f-4eb9-9be5-d37bbf0be67a",
	"CreatedTime": "2016-05-25T03:22:30.980",
	"Creator": "e05d1f1b-3d5e-4014-baa6-94dee7d68c89",
	"DisplayName": "Update to Group:  'test34343' Request",
	"EndpointAddress": ["exchange.mail:\/\/fimsvc:5726\/ResourceManagementService\/WorkflowManager\/303cac16-d927-41f6-abce-21ccbd883ea2\/6", "http:\/\/fimsvc:5726\/ResourceManagementService\/WorkflowManager\/303cac16-d927-41f6-abce-21ccbd883ea2\/6"],
	"Request": "ca3a16a8-e8b8-4377-ad63-08aae50ea5c7",
	"Requestor": "7fb2b853-24f0-4498-9534-4e10589723c4",
	"WorkflowInstance": "54be58f1-b8f1-4812-b9b5-df309960d0bd"
}, {
	"ObjectType": "Approval",
	"ObjectID": "1353f535-c23d-44ae-851c-f2365e020415",
	"ApprovalDuration": "2016-05-28T09:44:24.407",
	"ApprovalResponse": "2dba051f-fa97-4fe8-8f8e-daba1b966cac",
	"ApprovalStatus": "Pending",
	"ApprovalThreshold": "1",
	"Approver": "6437407e-eb9f-4eb9-9be5-d37bbf0be67a",
	"ComputedActor": "6437407e-eb9f-4eb9-9be5-d37bbf0be67a",
	"CreatedTime": "2016-05-25T09:44:26.117",
	"Creator": "e05d1f1b-3d5e-4014-baa6-94dee7d68c89",
	"DisplayName": "Update to Group:  'test34343' Request",
	"EndpointAddress": ["exchange.mail:\/\/fimsvc:5726\/ResourceManagementService\/WorkflowManager\/303cac16-d927-41f6-abce-21ccbd883ea2\/6", "http:\/\/fimsvc:5726\/ResourceManagementService\/WorkflowManager\/303cac16-d927-41f6-abce-21ccbd883ea2\/6"],
	"Request": "b6b14050-9108-4ee1-b564-2ba39d0061ff",
	"Requestor": "7fb2b853-24f0-4498-9534-4e10589723c4",
	"WorkflowInstance": "9fb09c84-9861-472f-baf0-83789eb773a3"
	"ObjectType": "Approval",
}]