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.
PATCH //leaves/{LeaveId} HTTP/1.1
Host: api.lsu-staging.abodehms.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateApprovalStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AbodeAPI.ServiceModel">
<ApprovalComment>String</ApprovalComment>
<ApprovalDate>0001-01-01T00:00:00</ApprovalDate>
<ApprovalReason>String</ApprovalReason>
<ApprovalStatus>String</ApprovalStatus>
<ApprovalUser>0</ApprovalUser>
<LeaveId>0</LeaveId>
</UpdateApprovalStatus>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<LeaveResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AbodeAPI.ServiceModel">
<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>