Example XML Request & Response - POST Test

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

Header:

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

Body:

<test xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

  <ExamType>ComputerBasedTest</ExamType>

  <NDA>

    <confirmationText>Test confirmation text</confirmationText>

    <duration>2</duration>

    <required>true</required>

  </NDA>

  <allowLanguageOverride>true</allowLanguageOverride>

  <allowPackagingOfCandidateResponses>true</allowPackagingOfCandidateResponses>

  <allowTestFormRecycling>true</allowTestFormRecycling>

  <allowTimeExtensionWhileInProgress>true</allowTimeExtensionWhileInProgress>

  <attemptAutoSubmit>true</attemptAutoSubmit>

  <autoCreatePIN>true</autoCreatePIN>

  <automaticallyShowToCentre>true</automaticallyShowToCentre>

  <candidateDetails>

    <duration>2</duration>

    <required>true</required>

  </candidateDetails>

  <certifiedAccessible>false</certifiedAccessible>

  <certifiedForTabletDelivery>false</certifiedForTabletDelivery>

  <defaultNavigationLanguage>English</defaultNavigationLanguage>

  <deliveryOptions>DeliverSameExamToAllCandidates</deliveryOptions>

  <easyPvalue>0.7</easyPvalue>

  <enableCandidateLogging>false</enableCandidateLogging>

  <expiryDate>2018-03-16</expiryDate>

  <generateTestStatistics>true</generateTestStatistics>

  <hardPvalue>0.3</hardPvalue>

  <markingType>StandardMarking</markingType>

  <maxEasyPvalue>0.9</maxEasyPvalue>

  <minHardPvalue>0.1</minHardPvalue>

  <minimumResitTime>1</minimumResitTime>

  <name>JL Test Exam</name>

  <numberOfResits>1</numberOfResits>

  <progressBar>

    <mode>ItemBased</mode>

    <required>true</required>

  </progressBar>

  <randomiseTestForms>true</randomiseTestForms>  
  <reference>JLT1</reference>

  <requiresInvigilation>true</requiresInvigilation>

  <requiresSecureClient>true</requiresSecureClient>

  <resultsUploadGracePeriod>14</resultsUploadGracePeriod>

  <scoreBoundaries>

    <boundaries>

      <test>

        <description>Not met</description>

        <higherBoundary>true</higherBoundary>

        <modifer>lt</modifier>

        <value>40</value>

      </test>

  <test>

        <description>Not met</description>

        <higherBoundary>false</higherBoundary>

        <modifer>lt</modifier>

        <value>40</value>

      </test>

  <test>

        <description>Met</description>

        <higherBoundary>false</higherBoundary>

        <modifer>gt</modifier>

        <value>40</value>

      </test>

  <test>

        <description>Close to met</description>

        <higherBoundary>true</higherBoundary>

        <modifer>gt</modifier>

        <value>40</value>

      </test>

      <test>

        <description>Met</description>

        <higherBoundary>true</higherBoundary>

        <modifer>gt</modifier>

        <value>45</value>

      </test>

      <test>

        <description>Exceeded</description>

        <higherBoundary>true</higherBoundary>

        <modifer>gt</modifier>

        <value>80</value>

      </test>

    </boundaries>

    <type>Percentage</type>

  </scoreBoundaries>

  <secureClientMode>Locked</secureClientMode>

  <showPageRequiresScrollingAlert>true</showPageRequiresScrollingAlert>

  <status>Draft</status>

  <strictControlReasonableAdjustments>true</strictControlReasonableAdjustments>

  <styleProfile>

    <displayReport>false</displayReport>

    <displayReportPrintButton>false</displayReportPrintButton>

    <testProfile>

      <id>1</id>

    </testProfile>

  </styleProfile>

  <subject>

    <reference>BTL1</reference>

  </subject>

  <testDistribution>Both</testDistribution>

  <testStyle>CustomBranding</testStyle>

  <testWindowEndTime>00:00</testWindowEndTime>

  <testWindowStartTime>23:59</testWindowStartTime>

  <useAsTemplate>true</useAsTemplate>

  <validFromDate>2016-03-16</validFromDate>

</test>

Response:


<response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

  <id>3596</id>

  <href>https://...surpass.com/api/v2/Test/3596</href>

  <errors i:nil="true" />

</response>

Feedback and Knowledge Base