AbodeONE

<back to all web services

FindLeaves

Requires Authentication
Required role:Admin
The following routes are available for this service:
All Verbs/student/{StudentId}/leaves
All Verbs/leaves
FindLeaves Parameters:
NameParameterData TypeRequiredDescription
StudentIdpathint?No
ApprovalStatusquerystringNo
ApprovalTypequerystringNo
Within90Daysquerybool?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST //student/{StudentId}/leaves HTTP/1.1 
Host: api.lsu-staging.abodehms.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<FindLeaves xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AbodeAPI.ServiceModel">
  <ApprovalStatus>String</ApprovalStatus>
  <ApprovalType>String</ApprovalType>
  <StudentId>0</StudentId>
  <Within90Days>false</Within90Days>
</FindLeaves>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ArrayOfLeaveResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AbodeAPI.ServiceModel">
  <LeaveResponse>
    <Address>String</Address>
    <Address2>String</Address2>
    <Age>0</Age>
    <ApprovalComment>String</ApprovalComment>
    <ApprovalDate>0001-01-01T00:00:00</ApprovalDate>
    <ApprovalReason>String</ApprovalReason>
    <ApprovalStatus>String</ApprovalStatus>
    <ApprovalType>String</ApprovalType>
    <ApprovalUserId>0</ApprovalUserId>
    <ApprovedBy>String</ApprovedBy>
    <BuildingId>0</BuildingId>
    <Cellphone>String</Cellphone>
    <City>String</City>
    <CommDt>0001-01-01T00:00:00</CommDt>
    <Companions>String</Companions>
    <Destination>String</Destination>
    <Driver>String</Driver>
    <FirstName>String</FirstName>
    <HostRelationship>String</HostRelationship>
    <Hostphone>String</Hostphone>
    <LastName>String</LastName>
    <LeaveDepart>0001-01-01T00:00:00</LeaveDepart>
    <LeaveId>0</LeaveId>
    <LeaveReturn>0001-01-01T00:00:00</LeaveReturn>
    <Postal>String</Postal>
    <Reason>String</Reason>
    <RequestDate>0001-01-01T00:00:00</RequestDate>
    <SchoolId>String</SchoolId>
    <State>String</State>
    <StudentId>0</StudentId>
    <Transport>String</Transport>
  </LeaveResponse>
</ArrayOfLeaveResponse>