Example XML Request & Response - POST BasicPage

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

Header:

Content-length: 874
Content-type: application/xml
Accept: application/xml
Authorization: Basic Q1RMRGVtbzpQYXNzd29yZa==


Body:


<basicPage xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

  <additionalContentType>RichText</additionalContentType>

  <additionalHtmlText>Please follow the instructions attached</additionalHtmlText>

  <additionalMathMl></additionalMathMl>

  <allowOpenImageInPopup>false</allowOpenImageInPopup>

  <comment>First draft of introduction page</comment>

  <contentType>RichText</contentType>

  <folder>

    <id>0</id>

    <position>2</position>

  </folder>

  <htmlText>Welcome to the BTL Exam</htmlText>

  <mathMl></mathMl>

  <mediaItems>

    <item>

      <id>4029</id>

    </item>

  </mediaItems>

  <mediaLayout>RightTitle</mediaLayout>

  <name>IntroPage1</name>

  <sourceMaterials>

    <item>

      <id>4080</id>

    </item>

  </sourceMaterials>

  <status>Draft</status>

  <subject>

    <reference>BTL1</reference>

  </subject>

  <type>IntroductionPage</type>

</basicPage>

 

Response: 

<response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

  <id>381778</id>

  <href>https://...surpass.com/api/v2/BasicPage/381778</href>

  <errors i:nil="true" />

</response>

Feedback and Knowledge Base