Example JSON Request & Response - POST Test

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


Header:

Content-length: 2500
Content-type: application/json
Accept: application/json
Authorization: Basic Q1RMRGVtbzpQYXNzd29yZa==

Body:

{

  "name": "JLTestExam",

  "reference": "JLTE",

  "status": "Draft",

  "subject": {

    "reference": "BTL1"

  },

  "certifiedAccessible": false,

  "useAsTemplate": true,

  "ExamType": "ComputerBasedTest",

  "allowTimeExtensionWhileInProgress": true,

  "attemptAutoSubmit": true,

  "resultsUploadGracePeriod": 14,

  "requiresSecureClient": true,

  "secureClientMode": "Locked",

  "requiresInvigilation": true,

  "certifiedForTabletDelivery": false,

  "numberOfResits": 1,

  "validFromDate": "2016-03-16",

  "expiryDate": "2018-03-16",

  "testWindowStartTime": "00:00",

  "testWindowEndTime": "23:59",

  "randomiseTestForms": true,

  "allowTestFormRecycling": true,

  "deliveryOptions": "DeliverSameExamToAllCandidates",

  "testDistribution": "Both",

  "markingType": "StandardMarking",

  "candidateDetails": {

    "required": true,

    "duration": 2

  },

  "NDA": {

    "required": true,

    "duration": 2,

    "confirmationText": "Test confirmation text"

  },

  "progressBar": {

    "required": true,

    "mode": "ItemBased"

  },

  "testStyle": "CustomBranding",

  "styleProfile": {

    "testProfile": {

      "id": 1

    },

    "displayReport": false,

    "displayReportPrintButton": false

  },

  "defaultNavigationLanguage": "English",

  "allowLanguageOverride": true,

  "showPageRequiresScrollingAlert": true,

  "easyPvalue": 0.7,

  "maxEasyPvalue": 0.9,

  "hardPvalue": 0.3,

  "minHardPvalue": 0.1,

  "minimumResitTime": 3,

  "generateTestStatistics": true,

  "allowPackagingOfCandidateResponses": true,

  "automaticallyShowToCentre": true,

  "autoCreatePIN": true,

  "strictControlReasonableAdjustments": true,

  "enableCandidateLogging": false,

  "scoreBoundaries": {

    "type": "Result",

    "boundaries": [

      {

        "modifer": "lt",

        "value": 40,

        "description": "Not met",

        "higherBoundary": true

      },

      {

        "modifer": "lt",

        "value": 40,

        "description": "Not met",

        "higherBoundary": false

      },

     {

        "modifer": "gt",

        "value": 40,

        "description": "Met",

        "higherBoundary": false

      },

      {

        "modifer": "gt",

        "value": 40,

        "description": "Close to met",

        "higherBoundary": true

      },

      {

        "modifer": "gt",

        "value": 45,

        "description": "Met",

        "higherBoundary": true

      },

      {

        "modifer": "gt",

        "value": 80,

        "description": "Exceeded",

        "higherBoundary": true

      }

    ]

  }

}


Response:

{

  "id": 3594,
  "href": "https://...surpass.com/api/v2/Test/3594",
  "errors": null
}

Feedback and Knowledge Base