POST api/RedBookSurvey/AddQuestion
Adds the question.
Request Information
URI Parameters
None.
Body Parameters
The survey question model.
SurveyQuestionName | Description | Type | Additional information |
---|---|---|---|
SurveyQuestionID | integer |
None. |
|
SurveyID | integer |
None. |
|
SurveyQuestionTypeID | integer |
None. |
|
QuestionTitle | string |
None. |
|
IsActive | boolean |
None. |
|
QuestionOrder | integer |
None. |
|
createdBY | string |
None. |
|
modifiedBY | string |
None. |
|
createdDate | string |
None. |
|
modifiedDate | string |
None. |
|
Survey | Survey |
None. |
|
SurveyQuestionType | SurveyQuestionType |
None. |
|
SurveyQuestionOptions | Collection of SurveyQuestionOption |
None. |
Request Formats
application/json, text/json
Sample:
{ "SurveyQuestionID": 1, "SurveyID": 1, "SurveyQuestionTypeID": 1, "QuestionTitle": "sample string 2", "IsActive": true, "QuestionOrder": 1, "createdBY": "sample string 3", "modifiedBY": "sample string 4", "createdDate": "sample string 5", "modifiedDate": "sample string 6", "Survey": { "SurveyID": 1, "SurveyName": "sample string 2", "SurveyDescription": "sample string 3", "SurveyType": 1, "StartDate": "2025-06-24T14:52:02.2642904-04:00", "EndDate": "2025-06-24T14:52:02.2642904-04:00", "PublishedDate": "2025-06-24T14:52:02.2642904-04:00", "IsActive": true, "CreatedBy": "sample string 4", "CreatedDate": "2025-06-24T14:52:02.2642904-04:00", "ModifiedBy": "sample string 5", "ModifiedDate": "2025-06-24T14:52:02.2642904-04:00", "SurveyResponses": [ { "SurveyResponseID": 1, "SurveyUserID": 1, "SurveyQuestionID": 1, "OtherResponse": "sample string 2", "QuestionTitle": "sample string 3", "SurveyID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:52:02.2642904-04:00", "ModifiedDate": "2025-06-24T14:52:02.2642904-04:00", "ModifiedBy": 1, "SurveyUser": { "SurveyUserID": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "Email": "sample string 4", "Age": 1, "Phone": "sample string 5", "CreatedDate": "2025-06-24T14:52:02.2642904-04:00", "DeviceID": "sample string 6", "SurveyResponses": [] }, "SurveyResponseOptions": [ { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:52:02.2642904-04:00", "OptionValue": "sample string 2" }, { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:52:02.2642904-04:00", "OptionValue": "sample string 2" } ] }, { "SurveyResponseID": 1, "SurveyUserID": 1, "SurveyQuestionID": 1, "OtherResponse": "sample string 2", "QuestionTitle": "sample string 3", "SurveyID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:52:02.2642904-04:00", "ModifiedDate": "2025-06-24T14:52:02.2642904-04:00", "ModifiedBy": 1, "SurveyUser": { "SurveyUserID": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "Email": "sample string 4", "Age": 1, "Phone": "sample string 5", "CreatedDate": "2025-06-24T14:52:02.2642904-04:00", "DeviceID": "sample string 6", "SurveyResponses": [] }, "SurveyResponseOptions": [ { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:52:02.2642904-04:00", "OptionValue": "sample string 2" }, { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:52:02.2642904-04:00", "OptionValue": "sample string 2" } ] } ], "SurveyQuestions": [] }, "SurveyQuestionType": { "SurveyQuestionTypeID": 1, "QuestionType": "sample string 2", "IsActive": true, "SurveyQuestions": [] }, "SurveyQuestionOptions": [ { "SurveyQuestionOptionID": 1, "SurveyQuestionID": 1, "OptionValue": "sample string 2" }, { "SurveyQuestionOptionID": 1, "SurveyQuestionID": 1, "OptionValue": "sample string 2" } ] }
text/html
Sample:
{"SurveyQuestionID":1,"SurveyID":1,"SurveyQuestionTypeID":1,"QuestionTitle":"sample string 2","IsActive":true,"QuestionOrder":1,"createdBY":"sample string 3","modifiedBY":"sample string 4","createdDate":"sample string 5","modifiedDate":"sample string 6","Survey":{"SurveyID":1,"SurveyName":"sample string 2","SurveyDescription":"sample string 3","SurveyType":1,"StartDate":"2025-06-24T14:52:02.2642904-04:00","EndDate":"2025-06-24T14:52:02.2642904-04:00","PublishedDate":"2025-06-24T14:52:02.2642904-04:00","IsActive":true,"CreatedBy":"sample string 4","CreatedDate":"2025-06-24T14:52:02.2642904-04:00","ModifiedBy":"sample string 5","ModifiedDate":"2025-06-24T14:52:02.2642904-04:00","SurveyResponses":[{"SurveyResponseID":1,"SurveyUserID":1,"SurveyQuestionID":1,"OtherResponse":"sample string 2","QuestionTitle":"sample string 3","SurveyID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:52:02.2642904-04:00","ModifiedDate":"2025-06-24T14:52:02.2642904-04:00","ModifiedBy":1,"SurveyUser":{"SurveyUserID":1,"FirstName":"sample string 2","LastName":"sample string 3","Email":"sample string 4","Age":1,"Phone":"sample string 5","CreatedDate":"2025-06-24T14:52:02.2642904-04:00","DeviceID":"sample string 6","SurveyResponses":[]},"SurveyResponseOptions":[{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:52:02.2642904-04:00","OptionValue":"sample string 2"},{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:52:02.2642904-04:00","OptionValue":"sample string 2"}]},{"SurveyResponseID":1,"SurveyUserID":1,"SurveyQuestionID":1,"OtherResponse":"sample string 2","QuestionTitle":"sample string 3","SurveyID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:52:02.2642904-04:00","ModifiedDate":"2025-06-24T14:52:02.2642904-04:00","ModifiedBy":1,"SurveyUser":{"SurveyUserID":1,"FirstName":"sample string 2","LastName":"sample string 3","Email":"sample string 4","Age":1,"Phone":"sample string 5","CreatedDate":"2025-06-24T14:52:02.2642904-04:00","DeviceID":"sample string 6","SurveyResponses":[]},"SurveyResponseOptions":[{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:52:02.2642904-04:00","OptionValue":"sample string 2"},{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:52:02.2642904-04:00","OptionValue":"sample string 2"}]}],"SurveyQuestions":[]},"SurveyQuestionType":{"SurveyQuestionTypeID":1,"QuestionType":"sample string 2","IsActive":true,"SurveyQuestions":[]},"SurveyQuestionOptions":[{"SurveyQuestionOptionID":1,"SurveyQuestionID":1,"OptionValue":"sample string 2"},{"SurveyQuestionOptionID":1,"SurveyQuestionID":1,"OptionValue":"sample string 2"}]}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
SurveyQuestionName | Description | Type | Additional information |
---|---|---|---|
SurveyQuestionID | integer |
None. |
|
SurveyID | integer |
None. |
|
SurveyQuestionTypeID | integer |
None. |
|
QuestionTitle | string |
None. |
|
IsActive | boolean |
None. |
|
QuestionOrder | integer |
None. |
|
createdBY | string |
None. |
|
modifiedBY | string |
None. |
|
createdDate | string |
None. |
|
modifiedDate | string |
None. |
|
Survey | Survey |
None. |
|
SurveyQuestionType | SurveyQuestionType |
None. |
|
SurveyQuestionOptions | Collection of SurveyQuestionOption |
None. |
Response Formats
application/json, text/json
Sample:
{ "SurveyQuestionID": 1, "SurveyID": 1, "SurveyQuestionTypeID": 1, "QuestionTitle": "sample string 2", "IsActive": true, "QuestionOrder": 1, "createdBY": "sample string 3", "modifiedBY": "sample string 4", "createdDate": "sample string 5", "modifiedDate": "sample string 6", "Survey": { "SurveyID": 1, "SurveyName": "sample string 2", "SurveyDescription": "sample string 3", "SurveyType": 1, "StartDate": "2025-06-24T14:52:02.2655636-04:00", "EndDate": "2025-06-24T14:52:02.2655636-04:00", "PublishedDate": "2025-06-24T14:52:02.2655636-04:00", "IsActive": true, "CreatedBy": "sample string 4", "CreatedDate": "2025-06-24T14:52:02.2655636-04:00", "ModifiedBy": "sample string 5", "ModifiedDate": "2025-06-24T14:52:02.2655636-04:00", "SurveyResponses": [ { "SurveyResponseID": 1, "SurveyUserID": 1, "SurveyQuestionID": 1, "OtherResponse": "sample string 2", "QuestionTitle": "sample string 3", "SurveyID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:52:02.2655636-04:00", "ModifiedDate": "2025-06-24T14:52:02.2655636-04:00", "ModifiedBy": 1, "SurveyUser": { "SurveyUserID": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "Email": "sample string 4", "Age": 1, "Phone": "sample string 5", "CreatedDate": "2025-06-24T14:52:02.2655636-04:00", "DeviceID": "sample string 6", "SurveyResponses": [] }, "SurveyResponseOptions": [ { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:52:02.2655636-04:00", "OptionValue": "sample string 2" }, { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:52:02.2655636-04:00", "OptionValue": "sample string 2" } ] }, { "SurveyResponseID": 1, "SurveyUserID": 1, "SurveyQuestionID": 1, "OtherResponse": "sample string 2", "QuestionTitle": "sample string 3", "SurveyID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:52:02.2655636-04:00", "ModifiedDate": "2025-06-24T14:52:02.2655636-04:00", "ModifiedBy": 1, "SurveyUser": { "SurveyUserID": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "Email": "sample string 4", "Age": 1, "Phone": "sample string 5", "CreatedDate": "2025-06-24T14:52:02.2655636-04:00", "DeviceID": "sample string 6", "SurveyResponses": [] }, "SurveyResponseOptions": [ { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:52:02.2655636-04:00", "OptionValue": "sample string 2" }, { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:52:02.2655636-04:00", "OptionValue": "sample string 2" } ] } ], "SurveyQuestions": [] }, "SurveyQuestionType": { "SurveyQuestionTypeID": 1, "QuestionType": "sample string 2", "IsActive": true, "SurveyQuestions": [] }, "SurveyQuestionOptions": [ { "SurveyQuestionOptionID": 1, "SurveyQuestionID": 1, "OptionValue": "sample string 2" }, { "SurveyQuestionOptionID": 1, "SurveyQuestionID": 1, "OptionValue": "sample string 2" } ] }
text/html
Sample:
{"SurveyQuestionID":1,"SurveyID":1,"SurveyQuestionTypeID":1,"QuestionTitle":"sample string 2","IsActive":true,"QuestionOrder":1,"createdBY":"sample string 3","modifiedBY":"sample string 4","createdDate":"sample string 5","modifiedDate":"sample string 6","Survey":{"SurveyID":1,"SurveyName":"sample string 2","SurveyDescription":"sample string 3","SurveyType":1,"StartDate":"2025-06-24T14:52:02.2655636-04:00","EndDate":"2025-06-24T14:52:02.2655636-04:00","PublishedDate":"2025-06-24T14:52:02.2655636-04:00","IsActive":true,"CreatedBy":"sample string 4","CreatedDate":"2025-06-24T14:52:02.2655636-04:00","ModifiedBy":"sample string 5","ModifiedDate":"2025-06-24T14:52:02.2655636-04:00","SurveyResponses":[{"SurveyResponseID":1,"SurveyUserID":1,"SurveyQuestionID":1,"OtherResponse":"sample string 2","QuestionTitle":"sample string 3","SurveyID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:52:02.2655636-04:00","ModifiedDate":"2025-06-24T14:52:02.2655636-04:00","ModifiedBy":1,"SurveyUser":{"SurveyUserID":1,"FirstName":"sample string 2","LastName":"sample string 3","Email":"sample string 4","Age":1,"Phone":"sample string 5","CreatedDate":"2025-06-24T14:52:02.2655636-04:00","DeviceID":"sample string 6","SurveyResponses":[]},"SurveyResponseOptions":[{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:52:02.2655636-04:00","OptionValue":"sample string 2"},{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:52:02.2655636-04:00","OptionValue":"sample string 2"}]},{"SurveyResponseID":1,"SurveyUserID":1,"SurveyQuestionID":1,"OtherResponse":"sample string 2","QuestionTitle":"sample string 3","SurveyID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:52:02.2655636-04:00","ModifiedDate":"2025-06-24T14:52:02.2655636-04:00","ModifiedBy":1,"SurveyUser":{"SurveyUserID":1,"FirstName":"sample string 2","LastName":"sample string 3","Email":"sample string 4","Age":1,"Phone":"sample string 5","CreatedDate":"2025-06-24T14:52:02.2655636-04:00","DeviceID":"sample string 6","SurveyResponses":[]},"SurveyResponseOptions":[{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:52:02.2655636-04:00","OptionValue":"sample string 2"},{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:52:02.2655636-04:00","OptionValue":"sample string 2"}]}],"SurveyQuestions":[]},"SurveyQuestionType":{"SurveyQuestionTypeID":1,"QuestionType":"sample string 2","IsActive":true,"SurveyQuestions":[]},"SurveyQuestionOptions":[{"SurveyQuestionOptionID":1,"SurveyQuestionID":1,"OptionValue":"sample string 2"},{"SurveyQuestionOptionID":1,"SurveyQuestionID":1,"OptionValue":"sample string 2"}]}