The request services offer the planner an option to approve or deny bids from their employees.
a) Pending Bids for Available Shifts
This service returns a list of pending bids. This is only available for planners.
Request (JSON)
GET /Requests/?securitytoken={sessionToken}
Response (JSON)
[{ "Comment":"", "EndDateTime":"\/Date(1324220400000+0100)\/", "IsAccepted":null, "RequestId":"6a957dc0-bdc8-47bf-9a0e-5f4d936f85da", "RequesterId":"38f02810-6ac4-40b4-b238-39236c826118", "RequesterName":"Peter", "ShiftHours":7.25, "StartDateTime":"\/Date(1324191600000+0100)\/", "ProviderId":"00000000-0000-0000-0000-000000000000", "ProviderName":"Ledig", “Violate11HourRule”:”false” }, ... { "Comment":"", "EndDateTime":"\/Date(1324220400000+0100)\/", "IsAccepted":null, "RequestId":"f2a77510-c92b-4543-984b-c7323fc3311b", "RequesterId":"38f02810-6ac4-40b4-b238-39236c826118", "RequesterName":"Peter", "ShiftHours":7.25, "StartDateTime":"\/Date(1324191600000+0100)\/", "ProviderId":"00000000-0000-0000-0000-000000000000", "ProviderName":"Ledig", “Violate11HourRule”:”false” }]
b) Approve or Deny Bids for Shifts
This approves or denies a bid or shift exchange. This is only available for planners and administrators.
Request (JSON)
PUT /Requests/{requestId}/?securitytoken={sessionToken} {“RequestId”:”<requestID>”,”Approved”:<true/false>}
Response (JSON)
HTTP/1.1 200 OK