POST api/RedBookSurvey/AddRedBookSurvey
Reds the book survey.
Request Information
URI Parameters
None.
Body Parameters
The survey.
SurveyName | Description | Type | Additional information |
---|---|---|---|
SurveyID | integer |
None. |
|
SurveyName | string |
None. |
|
SurveyDescription | string |
None. |
|
SurveyType | integer |
None. |
|
StartDate | date |
None. |
|
EndDate | date |
None. |
|
PublishedDate | date |
None. |
|
IsActive | boolean |
None. |
|
CreatedBy | string |
None. |
|
CreatedDate | date |
None. |
|
ModifiedBy | string |
None. |
|
ModifiedDate | date |
None. |
|
SurveyResponses | Collection of SurveyResponse |
None. |
|
SurveyQuestions | Collection of SurveyQuestion |
None. |
Request Formats
application/json, text/json
Sample:
{ "SurveyID": 1, "SurveyName": "sample string 2", "SurveyDescription": "sample string 3", "SurveyType": 1, "StartDate": "2025-06-24T14:36:01.7429655-04:00", "EndDate": "2025-06-24T14:36:01.7429655-04:00", "PublishedDate": "2025-06-24T14:36:01.7429655-04:00", "IsActive": true, "CreatedBy": "sample string 4", "CreatedDate": "2025-06-24T14:36:01.7429655-04:00", "ModifiedBy": "sample string 5", "ModifiedDate": "2025-06-24T14:36:01.7429655-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:36:01.7429655-04:00", "ModifiedDate": "2025-06-24T14:36:01.7429655-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:36:01.7429655-04:00", "DeviceID": "sample string 6", "SurveyResponses": [] }, "SurveyResponseOptions": [ { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:36:01.7429655-04:00", "OptionValue": "sample string 2" }, { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:36:01.7429655-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:36:01.7429655-04:00", "ModifiedDate": "2025-06-24T14:36:01.7429655-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:36:01.7429655-04:00", "DeviceID": "sample string 6", "SurveyResponses": [] }, "SurveyResponseOptions": [ { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:36:01.7429655-04:00", "OptionValue": "sample string 2" }, { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:36:01.7429655-04:00", "OptionValue": "sample string 2" } ] } ], "SurveyQuestions": [ { "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", "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" } ] }, { "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", "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:
{"SurveyID":1,"SurveyName":"sample string 2","SurveyDescription":"sample string 3","SurveyType":1,"StartDate":"2025-06-24T14:36:01.7429655-04:00","EndDate":"2025-06-24T14:36:01.7429655-04:00","PublishedDate":"2025-06-24T14:36:01.7429655-04:00","IsActive":true,"CreatedBy":"sample string 4","CreatedDate":"2025-06-24T14:36:01.7429655-04:00","ModifiedBy":"sample string 5","ModifiedDate":"2025-06-24T14:36:01.7429655-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:36:01.7429655-04:00","ModifiedDate":"2025-06-24T14:36:01.7429655-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:36:01.7429655-04:00","DeviceID":"sample string 6","SurveyResponses":[]},"SurveyResponseOptions":[{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:36:01.7429655-04:00","OptionValue":"sample string 2"},{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:36:01.7429655-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:36:01.7429655-04:00","ModifiedDate":"2025-06-24T14:36:01.7429655-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:36:01.7429655-04:00","DeviceID":"sample string 6","SurveyResponses":[]},"SurveyResponseOptions":[{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:36:01.7429655-04:00","OptionValue":"sample string 2"},{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:36:01.7429655-04:00","OptionValue":"sample string 2"}]}],"SurveyQuestions":[{"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","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"}]},{"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","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
SurveyName | Description | Type | Additional information |
---|---|---|---|
SurveyID | integer |
None. |
|
SurveyName | string |
None. |
|
SurveyDescription | string |
None. |
|
SurveyType | integer |
None. |
|
StartDate | date |
None. |
|
EndDate | date |
None. |
|
PublishedDate | date |
None. |
|
IsActive | boolean |
None. |
|
CreatedBy | string |
None. |
|
CreatedDate | date |
None. |
|
ModifiedBy | string |
None. |
|
ModifiedDate | date |
None. |
|
SurveyResponses | Collection of SurveyResponse |
None. |
|
SurveyQuestions | Collection of SurveyQuestion |
None. |
Response Formats
application/json, text/json
Sample:
{ "SurveyID": 1, "SurveyName": "sample string 2", "SurveyDescription": "sample string 3", "SurveyType": 1, "StartDate": "2025-06-24T14:36:01.7446628-04:00", "EndDate": "2025-06-24T14:36:01.7446628-04:00", "PublishedDate": "2025-06-24T14:36:01.7446628-04:00", "IsActive": true, "CreatedBy": "sample string 4", "CreatedDate": "2025-06-24T14:36:01.7446628-04:00", "ModifiedBy": "sample string 5", "ModifiedDate": "2025-06-24T14:36:01.7446628-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:36:01.7446628-04:00", "ModifiedDate": "2025-06-24T14:36:01.7446628-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:36:01.7446628-04:00", "DeviceID": "sample string 6", "SurveyResponses": [] }, "SurveyResponseOptions": [ { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:36:01.7446628-04:00", "OptionValue": "sample string 2" }, { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:36:01.7446628-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:36:01.7446628-04:00", "ModifiedDate": "2025-06-24T14:36:01.7446628-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:36:01.7446628-04:00", "DeviceID": "sample string 6", "SurveyResponses": [] }, "SurveyResponseOptions": [ { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:36:01.7446628-04:00", "OptionValue": "sample string 2" }, { "SurveyResponseOptionID": 1, "SurveyResponseID": 1, "SurveyQuestionOptionID": 1, "CreatedBy": 1, "CreatedDate": "2025-06-24T14:36:01.7446628-04:00", "OptionValue": "sample string 2" } ] } ], "SurveyQuestions": [ { "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", "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" } ] }, { "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", "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:
{"SurveyID":1,"SurveyName":"sample string 2","SurveyDescription":"sample string 3","SurveyType":1,"StartDate":"2025-06-24T14:36:01.7446628-04:00","EndDate":"2025-06-24T14:36:01.7446628-04:00","PublishedDate":"2025-06-24T14:36:01.7446628-04:00","IsActive":true,"CreatedBy":"sample string 4","CreatedDate":"2025-06-24T14:36:01.7446628-04:00","ModifiedBy":"sample string 5","ModifiedDate":"2025-06-24T14:36:01.7446628-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:36:01.7446628-04:00","ModifiedDate":"2025-06-24T14:36:01.7446628-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:36:01.7446628-04:00","DeviceID":"sample string 6","SurveyResponses":[]},"SurveyResponseOptions":[{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:36:01.7446628-04:00","OptionValue":"sample string 2"},{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:36:01.7446628-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:36:01.7446628-04:00","ModifiedDate":"2025-06-24T14:36:01.7446628-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:36:01.7446628-04:00","DeviceID":"sample string 6","SurveyResponses":[]},"SurveyResponseOptions":[{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:36:01.7446628-04:00","OptionValue":"sample string 2"},{"SurveyResponseOptionID":1,"SurveyResponseID":1,"SurveyQuestionOptionID":1,"CreatedBy":1,"CreatedDate":"2025-06-24T14:36:01.7446628-04:00","OptionValue":"sample string 2"}]}],"SurveyQuestions":[{"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","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"}]},{"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","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"}]}]}