POST api/Quiz/SaveAnswerDetails

Request Information

URI Parameters

None.

Body Parameters

AnswerDetails
NameDescriptionTypeAdditional information
attemptid

integer

None.

questionid

integer

None.

selectedanswerid

Collection of integer

None.

correct

boolean

None.

matchselection

Collection of matchselections

None.

cycleselection

Collection of cycleselections

None.

labelarrangement

Collection of labelarrangements

None.

Request Formats

application/json, text/json

Sample:
{
  "matchselection": [
    {
      "answerid": 1,
      "selectedrhsid": 2
    },
    {
      "answerid": 1,
      "selectedrhsid": 2
    }
  ],
  "cycleselection": [
    {
      "answerid": 1,
      "arrangedorder": 2
    },
    {
      "answerid": 1,
      "arrangedorder": 2
    }
  ],
  "labelarrangement": [
    {
      "answerid": 1,
      "arrangedlabelid": 2
    },
    {
      "answerid": 1,
      "arrangedlabelid": 2
    }
  ],
  "attemptid": 1,
  "questionid": 2,
  "selectedanswerid": [
    1,
    2
  ],
  "correct": true
}

application/xml, text/xml

Sample:
<AnswerDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QuizPluginService.Models">
  <attemptid>1</attemptid>
  <correct>true</correct>
  <cycleselection>
    <cycleselections>
      <answerid>1</answerid>
      <arrangedorder>2</arrangedorder>
    </cycleselections>
    <cycleselections>
      <answerid>1</answerid>
      <arrangedorder>2</arrangedorder>
    </cycleselections>
  </cycleselection>
  <labelarrangement>
    <labelarrangements>
      <answerid>1</answerid>
      <arrangedlabelid>2</arrangedlabelid>
    </labelarrangements>
    <labelarrangements>
      <answerid>1</answerid>
      <arrangedlabelid>2</arrangedlabelid>
    </labelarrangements>
  </labelarrangement>
  <matchselection>
    <matchselections>
      <answerid>1</answerid>
      <selectedrhsid>2</selectedrhsid>
    </matchselections>
    <matchselections>
      <answerid>1</answerid>
      <selectedrhsid>2</selectedrhsid>
    </matchselections>
  </matchselection>
  <questionid>2</questionid>
  <selectedanswerid xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </selectedanswerid>
</AnswerDetails>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />