POST api/v3/ShotClasses/postUserSurvey
Request Information
URI Parameters
None.
Body Parameters
ShotClassSurveyUserAttemptDataModelName | Description | Type | Additional information |
---|---|---|---|
ShotClassId | integer |
None. |
|
SurveyId | string |
None. |
|
UserSurveyQuestionAttempt | Collection of UserSurveyQuestionAttempt |
None. |
Request Formats
application/json, text/json
Sample:
{ "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" } ] }
text/html
Sample:
{"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"}]}
text/xml
Sample:
<ShotClassSurveyUserAttemptDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShotClassCore.Models"> <ShotClassId>1</ShotClassId> <SurveyId>sample string 2</SurveyId> <UserSurveyQuestionAttempt> <UserSurveyQuestionAttempt> <ChoiceId>1</ChoiceId> <FreeFormText>sample string 3</FreeFormText> <MultipleChoiceId xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </MultipleChoiceId> <QuestionId>1</QuestionId> <QuestionType>sample string 2</QuestionType> </UserSurveyQuestionAttempt> <UserSurveyQuestionAttempt> <ChoiceId>1</ChoiceId> <FreeFormText>sample string 3</FreeFormText> <MultipleChoiceId xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </MultipleChoiceId> <QuestionId>1</QuestionId> <QuestionType>sample string 2</QuestionType> </UserSurveyQuestionAttempt> </UserSurveyQuestionAttempt> </ShotClassSurveyUserAttemptDataModel>
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.