Example JSON Request & Response - POST Centre

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

Header:

Content-type: application/json

Accept: application/json

Authorization: Basic Q1RMRGVtbzpQYXNzd29yZa==

Body:

{
  "randomiseTestForms": true,
  "hideSubjectsIncludedInSubjectGroups": false,
  "excludeItemStatistics": false,
  "addressLine1": "BTL",
  "addressLine2": "Ashley Lane",
  "town": "Shipley",
  "county": {
    "id": 7
  },
  "postCode": "BD177DB",
  "country": {
    "id": 0
  },
  "primaryContact": {
    "id": 287,
  },
  "technicalContact": {
    "reference": "CentreFlock"
  },
  "name": "CentreAPITest",
  "reference": "CentreAPITest",
"status": "Active"
} 

Response:

{
  "id": 232,
  "reference": "CentreAPITest",
  "href": "https://demo.surpass.com/api/v2/Centre/232",
  "errors": null,
  "serverTimeZone": null
}

Feedback and Knowledge Base