POST Api/Poll/Answers/AddMassive
Request Information
URI Parameters
None.
Body Parameters
QuizzesAnswerMassiveRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| idQuiz | integer |
None. |
|
| List | Collection of QuizzesAnswerData |
None. |
Request Formats
application/json, text/json
Sample:
{
"idQuiz": 1,
"List": [
{
"answer": "sample string 1",
"correct": true
},
{
"answer": "sample string 1",
"correct": true
}
]
}
application/xml, text/xml
Sample:
<QuizzesAnswerMassiveRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<idQuiz>1</idQuiz>
<List>
<QuizzesAnswerData>
<answer>sample string 1</answer>
<correct>true</correct>
</QuizzesAnswerData>
<QuizzesAnswerData>
<answer>sample string 1</answer>
<correct>true</correct>
</QuizzesAnswerData>
</List>
</QuizzesAnswerMassiveRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GenericResponse| Name | Description | Type | Additional 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>