Example XML Request & Response - POST Centre

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

Header:

Content-type: application/xml

Accept: application/xml

Authorization: Basic Q1RMRGVtbzpQYXNzd29yZa==

Body:

<centre xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <addressLine1>BTL</addressLine1>
  <addressLine2>Ashley Lane</addressLine2>
  <country>
    <id>0</id>
  </country>
  <county>
    <id>7</id>
  </county>
  <excludeItemStatistics>false</excludeItemStatistics>
  <hideSubjectsIncludedInSubjectGroups>false</hideSubjectsIncludedInSubjectGroups>
  <postCode>BD177DB</postCode>
  <primaryContact>
    <reference>CentreFlock</reference>
  </primaryContact>
  <randomiseTestForms>true</randomiseTestForms>
  <technicalContact>
    <id>287</id>
  </technicalContact>
  <town>Shipley</town>
  <name>CentreAPITest</name>
  <reference>CentreAPITest</reference>
  <status>Active</status>
</centre> 

 Response:

<response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <reference>CentreAPITest</reference>
  <id>232</id>
  <href>https://demo.surpass.com/api/v2/Centre/232</href>
  <errors i:nil="true" />
  <serverTimeZone i:nil="true" />
</response>

Feedback and Knowledge Base