Example XML Request & Response - POST Subject

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

Header:

Content-type: application/xml

Accept: application/xml

Authorization: Basic Q1RMRGVtbzpQYXNzd29yZa==

Body:

<subject xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <deliveryType>OnScreen</deliveryType>
  <htmlOnly>false</htmlOnly>
  <name>Subject Name</name>
  <primaryCentre>
    <id>232</id>
  </primaryCentre>
  <reference>Subject Ref</reference>
</subject>

Response:

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

Feedback and Knowledge Base