POST SurveyData/Question
Create a Survey Question
Request Information
URI Parameters
None.
Body Parameters
The Question to be created
Smg.RestApi.Model.SurveyData.QuestionDefines a Question asked in a survey interaction, including details about the survey question and the expected data type of the Question's response.
Request Formats
application/json, text/json
Sample:
{ "Id": "5", "Name": "OverallSatisfaction", "Category": null, "Created": null, "IsNumericResponse": false, "IsTextResponse": false, "IsDateResponse": false, "IsChoiceResponse": true, "Choices": [ { "Id": "1", "Name": "Dissatisfied", "Value": 1, "IsTopValue": false, "IsBottomValue": true }, { "Id": "2", "Name": "SomewhatDissatisfied", "Value": 2, "IsTopValue": false, "IsBottomValue": false }, { "Id": "3", "Name": "Neutral", "Value": 3, "IsTopValue": false, "IsBottomValue": false }, { "Id": "4", "Name": "SomewhatSatisfied", "Value": 4, "IsTopValue": false, "IsBottomValue": false }, { "Id": "5", "Name": "Satisfied", "Value": 5, "IsTopValue": true, "IsBottomValue": false } ], "GeneratedId": null }
application/xml, text/xml
Sample:
<Question xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Smg.RestApi.Model.SurveyData"> <Category i:nil="true" /> <Choices> <QuestionChoice> <Id>1</Id> <IsBottomValue>true</IsBottomValue> <IsTopValue>false</IsTopValue> <Name>Dissatisfied</Name> <Value>1</Value> </QuestionChoice> <QuestionChoice> <Id>2</Id> <IsBottomValue>false</IsBottomValue> <IsTopValue>false</IsTopValue> <Name>SomewhatDissatisfied</Name> <Value>2</Value> </QuestionChoice> <QuestionChoice> <Id>3</Id> <IsBottomValue>false</IsBottomValue> <IsTopValue>false</IsTopValue> <Name>Neutral</Name> <Value>3</Value> </QuestionChoice> <QuestionChoice> <Id>4</Id> <IsBottomValue>false</IsBottomValue> <IsTopValue>false</IsTopValue> <Name>SomewhatSatisfied</Name> <Value>4</Value> </QuestionChoice> <QuestionChoice> <Id>5</Id> <IsBottomValue>false</IsBottomValue> <IsTopValue>true</IsTopValue> <Name>Satisfied</Name> <Value>5</Value> </QuestionChoice> </Choices> <Created xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" i:nil="true" /> <GeneratedId i:nil="true" /> <Id>5</Id> <IsChoiceResponse>true</IsChoiceResponse> <IsDateResponse>false</IsDateResponse> <IsNumericResponse>false</IsNumericResponse> <IsTextResponse>false</IsTextResponse> <Name>OverallSatisfaction</Name> </Question>
Response Information
Resource Description
Smg.RestApi.Model.SurveyData.QuestionDefines a Question asked in a survey interaction, including details about the survey question and the expected data type of the Question's response.
Response Formats
application/json, text/json
Sample:
{ "Id": "5", "Name": "OverallSatisfaction", "Category": null, "Created": null, "IsNumericResponse": false, "IsTextResponse": false, "IsDateResponse": false, "IsChoiceResponse": true, "Choices": [ { "Id": "1", "Name": "Dissatisfied", "Value": 1, "IsTopValue": false, "IsBottomValue": true }, { "Id": "2", "Name": "SomewhatDissatisfied", "Value": 2, "IsTopValue": false, "IsBottomValue": false }, { "Id": "3", "Name": "Neutral", "Value": 3, "IsTopValue": false, "IsBottomValue": false }, { "Id": "4", "Name": "SomewhatSatisfied", "Value": 4, "IsTopValue": false, "IsBottomValue": false }, { "Id": "5", "Name": "Satisfied", "Value": 5, "IsTopValue": true, "IsBottomValue": false } ], "GeneratedId": null }
application/xml, text/xml
Sample:
<Question xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Smg.RestApi.Model.SurveyData"> <Category i:nil="true" /> <Choices> <QuestionChoice> <Id>1</Id> <IsBottomValue>true</IsBottomValue> <IsTopValue>false</IsTopValue> <Name>Dissatisfied</Name> <Value>1</Value> </QuestionChoice> <QuestionChoice> <Id>2</Id> <IsBottomValue>false</IsBottomValue> <IsTopValue>false</IsTopValue> <Name>SomewhatDissatisfied</Name> <Value>2</Value> </QuestionChoice> <QuestionChoice> <Id>3</Id> <IsBottomValue>false</IsBottomValue> <IsTopValue>false</IsTopValue> <Name>Neutral</Name> <Value>3</Value> </QuestionChoice> <QuestionChoice> <Id>4</Id> <IsBottomValue>false</IsBottomValue> <IsTopValue>false</IsTopValue> <Name>SomewhatSatisfied</Name> <Value>4</Value> </QuestionChoice> <QuestionChoice> <Id>5</Id> <IsBottomValue>false</IsBottomValue> <IsTopValue>true</IsTopValue> <Name>Satisfied</Name> <Value>5</Value> </QuestionChoice> </Choices> <Created xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" i:nil="true" /> <GeneratedId i:nil="true" /> <Id>5</Id> <IsChoiceResponse>true</IsChoiceResponse> <IsDateResponse>false</IsDateResponse> <IsNumericResponse>false</IsNumericResponse> <IsTextResponse>false</IsTextResponse> <Name>OverallSatisfaction</Name> </Question>