Example XML Request & Response - GET Item Sets

GET https://...surpass.com/api/v2/ItemSet/

<response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <count>2</count>
  <top>10</top>
  <skip>0</skip>
  <pageCount>1</pageCount>
  <nextPageLink i:nil="true" />
  <prevPageLink i:nil="true" />
  <response>
    <itemSet>
      <id>18352</id>
      <href>https://...surpass.com/api/v2/ItemSet/18352</href>
    </itemSet>
    <itemSet>
      <id>18381</id>
      <href>https://...surpass.com/api/v2/ItemSet/18381</href>
    </itemSet>
  </response>
  <errors i:nil="true" />
  <serverTimeZone>GMT Standard Time</serverTimeZone>
</response>

GET https://...surpass.com/api/v2/ItemSet/{id}

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

  <count i:nil="true" />

  <top i:nil="true" />

  <skip i:nil="true" />

  <pageCount i:nil="true" />

  <nextPageLink i:nil="true" />

  <prevPageLink i:nil="true" />

  <response>

    <itemSet>

      <id>4948</id>

      <href>https://...com/api/v2/ItemSet/4948</href>

      <allowRandomisation>false</allowRandomisation>

      <items>

        <item>

          <id>4950</id>

          <type>MultipleChoice</type>

          <href>https://...com/api/v2/Item/4950</href>

        </item>

        <item>

          <id>4952</id>

         <type>MultipleResponse</type>

          <href>https://...com/api/v2/Item/4952</href>

        </item>

        <item>

          <id>4954</id>

          <type>EitherOr</type>

          <href>https://...com/api/v2/Item/4954</href>

        </item>

        <item>

          <id>4958</id>

          <type>NumericalEntry</type>

          <href>https://...com/api/v2/Item/4958</href>

        </item>

        <item>

          <id>4966</id>

          <type>SelectFromAList</type>

          <href>https://...com/api/v2/Item/4966</href>

        </item>

      </items>

      <locked>true</locked>

      <name>Item Set 1</name>

      <parentFolderId>0</parentFolderId>

      <position>2</position>

      <sharedWith />

      <standardLists />

      <subject>

        <reference>JH</reference>

        <id>185</id>

        <href>https://...com/api/v2/Subject/185</href>

      </subject>

    </itemSet>

  </response>

  <errors i:nil="true" />

  <serverTimeZone>GMT Standard Time</serverTimeZone>

</response>

Feedback and Knowledge Base