Example XML Request & Response - PUT Item

https://...surpass.com/api/v2/Item/363134

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

<allowOpenImageInPopup>false</allowOpenImageInPopup>

<comment>sample string 4</comment>

  <folder>

    <id>0</id>

    <position>0</position>

  </folder>

  <generalFeedback></generalFeedback>

  <htmlText>sample string 3</htmlText>

<itemPurpose>0</itemPurpose>

  <mark>1</mark>

  <markScheme xmlns:d2p1="http://schemas.datacontract.org/2004/07/SurpassApiSdk.DataContracts.Item">

    <d2p1:Data>QEBA</d2p1:Data>

    <d2p1:Name>sample string 1</d2p1:Name>

  </markScheme>

  <markingType>Computer</markingType>

  <mediaItems>

    <item>

      <id>1</id>

    </item>

  </mediaItems>

  <multipleChoiceQuestions>

    <item>

      <addLabelsToOptions>true</addLabelsToOptions>

      <optionList>

        <options>

          <itemOption>

            <contentType>RichText</contentType>

            <correct>true</correct>

            <htmlText>sample string 3</htmlText>

            <id>0</id>

            <label>5</label>

            <mathMl></mathMl>

            <mediaItem></mediaItem>

            <text>sample string 2</text>

            <weightedMark>1</weightedMark>

          </itemOption>

          <itemOption>

            <contentType>RichText</contentType>

            <correct>false</correct>

            <htmlText>sample string 3</htmlText>

            <id>0</id>

            <label>6</label>

            <mathMl></mathMl>

            <mediaItem></mediaItem>

            <text>sample string 2</text>

            <weightedMark>1</weightedMark>

          </itemOption>

          <itemOption>

            <contentType>RichText</contentType>

            <correct>false</correct>

            <htmlText>sample string 3</htmlText>

            <id>0</id>

            <label>7</label>

            <mathMl></mathMl>

            <mediaItem></mediaItem>

            <text>sample string 2</text>

            <weightedMark>1</weightedMark>

          </itemOption>

        </options>

      </optionList>

      <randomise>true</randomise>

    </item>

  </multipleChoiceQuestions>

  <name>sample string 1</name>

  <questionText>sample string 2</questionText>

  <seedPValue>12</seedPValue>

  <seedUsageCount>1</seedUsageCount>

  <sourceMaterials></sourceMaterials>

  <status>Draft</status>

  <subject>

    <id>1</id>

    <reference>sample string 1</reference>

  </subject>

  <multipleResponseQuestions><multipleResponseQuestions>

  <essayQuestions><essayQuestions>

  <shortAnswerQuestions><shortAnswerQuestions>

  <mediaLayout>Autoselect</mediaLayout>

</item>

 

Response:

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

  <id>363134</id>

  <href>https://...surpass.com/api/v2/Item/363134</href>

  <errors i:nil="true" />

</response>

Feedback and Knowledge Base