PUT api/v1/VisualReports/ShotClass/CompleteQuiz
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
version | string |
None. |
Body Parameters
AssessmentScoreDetailName | Description | Type | Additional information |
---|---|---|---|
Score | decimal number |
None. |
|
ClassId | integer |
None. |
|
IsUserAssessmentSuccess | boolean |
None. |
|
ClassName | string |
None. |
|
TotalCorrectAnswers | integer |
None. |
|
Locale | string |
None. |
|
UserQuestionResponse | Collection of UserQuestionResponse |
None. |
|
SurveyAttempt | ShotClassSurveyUserAttemptDataModel |
None. |
|
CourseCompletionDuration | integer |
None. |
|
VirtualOrLiveQuizEventId | integer |
None. |
|
IsQuizSubmitForLiveOrVirtualEvent | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Score": 1.0, "ClassId": 2, "IsUserAssessmentSuccess": true, "ClassName": "sample string 4", "TotalCorrectAnswers": 5, "Locale": "sample string 6", "UserQuestionResponse": [ { "QuestionId": 1, "ChoiceId": 1, "IsRightAnswer": true, "TimeSpent": 1 }, { "QuestionId": 1, "ChoiceId": 1, "IsRightAnswer": true, "TimeSpent": 1 } ], "SurveyAttempt": { "ShotClassId": 1, "SurveyId": "sample string 2", "UserSurveyQuestionAttempt": [ { "QuestionId": 1, "QuestionType": "sample string 2", "ChoiceId": 1, "MultipleChoiceId": [ "sample string 1", "sample string 2" ], "FreeFormText": "sample string 3" }, { "QuestionId": 1, "QuestionType": "sample string 2", "ChoiceId": 1, "MultipleChoiceId": [ "sample string 1", "sample string 2" ], "FreeFormText": "sample string 3" } ] }, "CourseCompletionDuration": 7, "VirtualOrLiveQuizEventId": 8, "IsQuizSubmitForLiveOrVirtualEvent": true }
text/html
Sample:
{"Score":1.0,"ClassId":2,"IsUserAssessmentSuccess":true,"ClassName":"sample string 4","TotalCorrectAnswers":5,"Locale":"sample string 6","UserQuestionResponse":[{"QuestionId":1,"ChoiceId":1,"IsRightAnswer":true,"TimeSpent":1},{"QuestionId":1,"ChoiceId":1,"IsRightAnswer":true,"TimeSpent":1}],"SurveyAttempt":{"ShotClassId":1,"SurveyId":"sample string 2","UserSurveyQuestionAttempt":[{"QuestionId":1,"QuestionType":"sample string 2","ChoiceId":1,"MultipleChoiceId":["sample string 1","sample string 2"],"FreeFormText":"sample string 3"},{"QuestionId":1,"QuestionType":"sample string 2","ChoiceId":1,"MultipleChoiceId":["sample string 1","sample string 2"],"FreeFormText":"sample string 3"}]},"CourseCompletionDuration":7,"VirtualOrLiveQuizEventId":8,"IsQuizSubmitForLiveOrVirtualEvent":true}
text/xml
Sample:
<AssessmentScoreDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShotClassCore.Models"> <ClassId>2</ClassId> <ClassName>sample string 4</ClassName> <CourseCompletionDuration>7</CourseCompletionDuration> <IsQuizSubmitForLiveOrVirtualEvent>true</IsQuizSubmitForLiveOrVirtualEvent> <IsUserAssessmentSuccess>true</IsUserAssessmentSuccess> <Locale>sample string 6</Locale> <Score>1</Score> <SurveyAttempt> <ShotClassId>1</ShotClassId> <SurveyId>sample string 2</SurveyId> <UserSurveyQuestionAttempt> <UserSurveyQuestionAttempt> <ChoiceId>1</ChoiceId> <FreeFormText>sample string 3</FreeFormText> <MultipleChoiceId xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </MultipleChoiceId> <QuestionId>1</QuestionId> <QuestionType>sample string 2</QuestionType> </UserSurveyQuestionAttempt> <UserSurveyQuestionAttempt> <ChoiceId>1</ChoiceId> <FreeFormText>sample string 3</FreeFormText> <MultipleChoiceId xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </MultipleChoiceId> <QuestionId>1</QuestionId> <QuestionType>sample string 2</QuestionType> </UserSurveyQuestionAttempt> </UserSurveyQuestionAttempt> </SurveyAttempt> <TotalCorrectAnswers>5</TotalCorrectAnswers> <UserQuestionResponse> <UserQuestionResponse> <ChoiceId>1</ChoiceId> <IsRightAnswer>true</IsRightAnswer> <QuestionId>1</QuestionId> <TimeSpent>1</TimeSpent> </UserQuestionResponse> <UserQuestionResponse> <ChoiceId>1</ChoiceId> <IsRightAnswer>true</IsRightAnswer> <QuestionId>1</QuestionId> <TimeSpent>1</TimeSpent> </UserQuestionResponse> </UserQuestionResponse> <VirtualOrLiveQuizEventId>8</VirtualOrLiveQuizEventId> </AssessmentScoreDetail>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, text/xml
Sample:
Sample not available.