POST api/Quiz/SaveQuizAnswers
Request Information
URI Parameters
None.
Body Parameters
SendQuizAnswersRequestName | Description | Type | Additional information |
---|---|---|---|
AnswersDTO | Collection of QuizAnswerDTO |
None. |
|
string |
None. |
||
LastUpdateDateTime | date |
None. |
|
ClientVersion | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "AnswersDTO": [ { "QuizQuestionId": "sample string 1", "RispostaSelezionata": 2, "TestoSelezionato": "sample string 3", "AnswerDateTime": "2025-04-04T04:52:19.3061834+02:00" }, { "QuizQuestionId": "sample string 1", "RispostaSelezionata": 2, "TestoSelezionato": "sample string 3", "AnswerDateTime": "2025-04-04T04:52:19.3061834+02:00" } ], "Email": "sample string 1", "LastUpdateDateTime": "2025-04-04T04:52:19.3061834+02:00", "ClientVersion": "sample string 3" }
application/xml, text/xml
Sample:
<SendQuizAnswersRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VarGroup.Model.Quiz"> <ClientVersion xmlns="http://schemas.datacontract.org/2004/07/VarGroup.Models">sample string 3</ClientVersion> <Email xmlns="http://schemas.datacontract.org/2004/07/VarGroup.Models">sample string 1</Email> <LastUpdateDateTime xmlns="http://schemas.datacontract.org/2004/07/VarGroup.Models">2025-04-04T04:52:19.3061834+02:00</LastUpdateDateTime> <AnswersDTO> <QuizAnswerDTO> <AnswerDateTime>2025-04-04T04:52:19.3061834+02:00</AnswerDateTime> <QuizQuestionId>sample string 1</QuizQuestionId> <RispostaSelezionata>2</RispostaSelezionata> <TestoSelezionato>sample string 3</TestoSelezionato> </QuizAnswerDTO> <QuizAnswerDTO> <AnswerDateTime>2025-04-04T04:52:19.3061834+02:00</AnswerDateTime> <QuizQuestionId>sample string 1</QuizQuestionId> <RispostaSelezionata>2</RispostaSelezionata> <TestoSelezionato>sample string 3</TestoSelezionato> </QuizAnswerDTO> </AnswersDTO> </SendQuizAnswersRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SendQuizAnswersResponseName | Description | Type | Additional information |
---|---|---|---|
ResponseDateTime | date |
None. |
|
ErrorMessage | string |
None. |
|
IsValid | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "ResponseDateTime": "2025-04-04T04:52:19.3186681+02:00", "ErrorMessage": "sample string 2", "IsValid": true }
application/xml, text/xml
Sample:
<SendQuizAnswersResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VarGroup.Model.Quiz"> <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/VarGroup.Models">sample string 2</ErrorMessage> <IsValid xmlns="http://schemas.datacontract.org/2004/07/VarGroup.Models">true</IsValid> <ResponseDateTime xmlns="http://schemas.datacontract.org/2004/07/VarGroup.Models">2025-04-04T04:52:19.3186681+02:00</ResponseDateTime> </SendQuizAnswersResponse>