Example XML Request & Response - POST TestSchedule

https://...surpass.com/api/v2/TestSchedule/

Header:

Content-type: application/xml
Accept: application/xml
Authorization: Basic
Q1RMRGVtbzpQYXNzd29yZa==

Body:

<TestSchedule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Btl.Aspire.Administration.Web.Areas.Api.Version2.DataContracts.TestSchedule">
  <Test>
    <reference xmlns="">Jltf01</reference>
  </Test>
  <Centre>
    <reference xmlns="">JLTC</reference>
  </Centre>
  <Candidate>
    <reference xmlns="">JLcand1</reference>
  </Candidate>
  <startDate>24/03/2016</startDate>
  <endDate>24/03/2016</endDate>
  <startTime>0900</startTime>
  <endTime>2359</endTime>
  <reasonableAdjustments xmlns:d2p1="http://schemas.datacontract.org/2004/07/SurpassApiSdk.DataContracts.TestSchedule">
    <d2p1:extraTimeMin>30</d2p1:extraTimeMin>
    <d2p1:extraTimePercentage>50</d2p1:extraTimePercentage>
    <d2p1:reason>Extra time. Visual impairment</d2p1:reason>
  </reasonableAdjustments>
<markedExternally>false</markedExternally>
<allowMultipleOpenSessions>false</allowMultipleOpenSessions>
<requiresInvigilation>true</requiresInvigilation>
  <testTags>
    <tag xmlns="">Class 2B</tag>
    <tag xmlns="">PC Lab 7</tag>
    <tag xmlns="">Spring mock assessment</tag>
  </testTags>
  <TestForm>
    <reference xmlns="">JLtf01</reference>
  </TestForm>
  <Marker>
    <reference xmlns="">sample string 1</reference>
    <id xmlns="">1</id>
  </Marker>
  <Moderator>
    <reference xmlns="">sample string 1</reference>
    <id xmlns="">1</id>
  </Moderator>
 <purchaseOrder>1A2B3C</purchaseOrder>
 <Subject>
    <reference xmlns="">sample string 1</reference>
    <id xmlns="">1</id>
  </Subject>
  <breakReasonableAdjustments>
    <extraTimeMin xmlns="">0</extraTimeMin>
    <extraTimePercentage xmlns="">0</extraTimePercentage>
    <numberOfExtraBreaksPerSection xmlns="">0</numberOfExtraBreaksPerSection>
    <reason xmlns="">sample string 1</reason>
  </breakReasonableAdjustments>
  <Subject>
    <reference xmlns="">sample string 1</reference>
    <id xmlns="">1</id>
  </Subject>
  <unscheduledBreak>
    <extraTimeMin xmlns="">0</extraTimeMin>
  </unscheduledBreak>
  <language>en</language>
  <enforceTimes>true</enforceTimes>
  <uploadResponses>false</uploadResponses>
  <externalReference i:nil="true" />
  <qualityReview>false</qualityReview>
</TestSchedule>

Example Create (POST) response (XML)

<response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <id>30399</id>
  <href>https://...surpass.com/api/v2/TestSchedule/30399</href>
  <errors i:nil="true" />
  <serverTimeZone>GMT Standard Time</serverTimeZone>
  <keycode>PX37JK8P</keycode>
  <pin>6M7H7M</pin>
</response>    

Feedback and Knowledge Base