POST Api/Poll/AddPollUserAnswerMassive

Request Information

URI Parameters

None.

Body Parameters

PollAddAnswerMassiveRequest
NameDescriptionTypeAdditional information
idCourse

integer

None.

Answers

Collection of PollAddAnswerRequest

None.

Request Formats

application/json, text/json

Sample:
{
  "idCourse": 1,
  "Answers": [
    {
      "idCourse": 1,
      "idQuestion": 2,
      "response": "sample string 3"
    },
    {
      "idCourse": 1,
      "idQuestion": 2,
      "response": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<PollAddAnswerMassiveRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <idCourse>1</idCourse>
  <Answers>
    <PollAddAnswerRequest>
      <idCourse>1</idCourse>
      <idQuestion>2</idQuestion>
      <response>sample string 3</response>
    </PollAddAnswerRequest>
    <PollAddAnswerRequest>
      <idCourse>1</idCourse>
      <idQuestion>2</idQuestion>
      <response>sample string 3</response>
    </PollAddAnswerRequest>
  </Answers>
</PollAddAnswerMassiveRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GenericResponse
NameDescriptionTypeAdditional information
success

La solicitud se realizo correctamente

boolean

None.

error

Error arrojado por la API

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "error": "sample string 2"
}

application/xml, text/xml

Sample:
<GenericResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <success>true</success>
  <error>sample string 2</error>
</GenericResponse>