Example JSON Request & Response - POST TestSchedule

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

Header:

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

Body:

{

  "Test": {

    "id": 1,

    "reference": "sample string 2",

    "href": "sample string 1"

  },

  "Centre": {

    "id": 1,

    "reference": "sample string 1"

  },

  "Candidate": {

    "firstName": "sample string 2",

    "middleName": "sample string 3",

    "lastName": "sample string 4",

    "dateOfBirth": "2019-01-28T15:44:16.0351372+00:00",

    "gender": "sample string 5",

    "email": "sample string 6",

    "tеl": "sample string 7",

    "uln": "sample string 8",

    "reasonableAdjustments": true,

    "isExternal": false,

    "expiryDate": "2019-01-28T15:44:16.0351372+00:00",

    "id": 1,

    "reference": "sample string 1"

  },

  "startDate": "sample string 1",

  "endDate": "sample string 2",

  "startTime": "sample string 3",

  "endTime": "sample string 4",

  "reasonableAdjustments": {

    "extraTimeMin": 1,

    "extraTimePercentage": 1,

    "reason": "sample string 1"

  },

  "markedExternally": true,

  "allowMultipleOpenSessions": false,

  "requiresInvigilation": true,

  "testTags": [

    "sample string 1",

   "sample string 2",

    "sample string 3"

  ],

  "TestForm": {

    "id": 1,

    "reference": "sample string 1"

  },

  "Marker": {

    "id": 1,

    "reference": "sample string 1"

  },

  "Moderator": {

    "id": 1,

    "reference": "sample string 1"

  },

  "purchaseOrder": "sample string 6",

  "breakReasonableAdjustments": {

    "extraTimeMin": 0,

    "extraTimePercentage": 0,

    "numberOfExtraBreaksPerSection": 0,

    "reason": "sample string 1"

  },

  "Subject": {

    "id": 1,

    "reference": "sample string 1"

  },

  "unscheduledBreak": {

    "extraTimeMin": 0

  },

  "language": "en",

  "enforceTimes": true,

  "uploadResponses": false,

  "externalReference": null,

  "qualityReview": false,

  "unlockOverride": {

    "unlockForWholeDay": null,

    "daysInAdvanceToUnlock": null,

    "daysAfterToLock": null

  },

  "forceRequireExamVersionDate": false,

  "selectedSections": null

}


Example Create (POST) response (JSON)

{
  "id": 30396,
  "href":"https://...surpass.com/api/v2/TestSchedule/30396",
  "errors": null,
  "keycode": "HC7TBK8P",
  "serverTimeZone": "GMT Standard Time",
  "pin": "8F7Q6P"
}

Feedback and Knowledge Base