PUT api/Survey/GetQuestions
Request Information
URI Parameters
None.
Body Parameters
APIQuestionRequestName | Description | Type | Additional information |
---|---|---|---|
CustomerId | integer |
None. |
|
SurveyId | integer |
None. |
|
UserUniqueId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "CustomerId": 1, "SurveyId": 2, "UserUniqueId": 3 }
application/xml, text/xml
Sample:
<APIQuestionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model"> <CustomerId>1</CustomerId> <SurveyId>2</SurveyId> <UserUniqueId>3</UserUniqueId> </APIQuestionRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of APIQuestionResponseName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Question | string |
None. |
|
TypeId | integer |
None. |
|
Options | Collection of QuestionAnswerMapping |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "Question": "sample string 2", "TypeId": 3, "Options": [ { "Id": 1, "Answer": "sample string 2" }, { "Id": 1, "Answer": "sample string 2" } ] }, { "Id": 1, "Question": "sample string 2", "TypeId": 3, "Options": [ { "Id": 1, "Answer": "sample string 2" }, { "Id": 1, "Answer": "sample string 2" } ] } ]
application/xml, text/xml
Sample:
<ArrayOfAPIQuestionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model"> <APIQuestionResponse> <Id>1</Id> <Options> <QuestionAnswerMapping> <Answer>sample string 2</Answer> <Id>1</Id> </QuestionAnswerMapping> <QuestionAnswerMapping> <Answer>sample string 2</Answer> <Id>1</Id> </QuestionAnswerMapping> </Options> <Question>sample string 2</Question> <TypeId>3</TypeId> </APIQuestionResponse> <APIQuestionResponse> <Id>1</Id> <Options> <QuestionAnswerMapping> <Answer>sample string 2</Answer> <Id>1</Id> </QuestionAnswerMapping> <QuestionAnswerMapping> <Answer>sample string 2</Answer> <Id>1</Id> </QuestionAnswerMapping> </Options> <Question>sample string 2</Question> <TypeId>3</TypeId> </APIQuestionResponse> </ArrayOfAPIQuestionResponse>