POST api/MEQuestion/PostQuestionnaire
Request Information
URI Parameters
None.
Body Parameters
QuestionnaireDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Question | string |
String length: inclusive between 0 and 500 |
|
| QuestionType | string |
String length: inclusive between 0 and 100 |
|
| IsInline | boolean |
None. |
|
| Class | string |
String length: inclusive between 0 and 200 |
|
| PlaceHolder | string |
String length: inclusive between 0 and 300 |
|
| MaxLength | integer |
None. |
|
| Row | integer |
None. |
|
| HelpText | string |
String length: inclusive between 0 and 300 |
|
| lstOptions | Collection of QuestionOptionDTO |
None. |
|
| ValidFlag | boolean |
None. |
|
| DateCreated | date |
None. |
|
| DateUpdated | date |
None. |
|
| UserIDCreated | integer |
None. |
|
| UserIDUpdated | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Question": "sample string 2",
"QuestionType": "sample string 3",
"IsInline": true,
"Class": "sample string 4",
"PlaceHolder": "sample string 5",
"MaxLength": 1,
"Row": 1,
"HelpText": "sample string 6",
"lstOptions": [
{
"Id": 1,
"QuestionnaireId": 2,
"OptionName": "sample string 3",
"OptionValue": "sample string 4",
"IsChecked": true,
"ValidFlag": true,
"DateCreated": "2025-10-30T07:51:03.3089312-07:00",
"DateUpdated": "2025-10-30T07:51:03.3089312-07:00",
"UserIDCreated": 8,
"UserIDUpdated": 9
},
{
"Id": 1,
"QuestionnaireId": 2,
"OptionName": "sample string 3",
"OptionValue": "sample string 4",
"IsChecked": true,
"ValidFlag": true,
"DateCreated": "2025-10-30T07:51:03.3089312-07:00",
"DateUpdated": "2025-10-30T07:51:03.3089312-07:00",
"UserIDCreated": 8,
"UserIDUpdated": 9
}
],
"ValidFlag": true,
"DateCreated": "2025-10-30T07:51:03.3089312-07:00",
"DateUpdated": "2025-10-30T07:51:03.3089312-07:00",
"UserIDCreated": 10,
"UserIDUpdated": 11
}
application/xml, text/xml
Sample:
<QuestionnaireDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.DTO.MedicalExam">
<DateCreated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">2025-10-30T07:51:03.3089312-07:00</DateCreated>
<DateUpdated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">2025-10-30T07:51:03.3089312-07:00</DateUpdated>
<UserIDCreated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">10</UserIDCreated>
<UserIDUpdated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">11</UserIDUpdated>
<ValidFlag xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">true</ValidFlag>
<Class>sample string 4</Class>
<HelpText>sample string 6</HelpText>
<Id>1</Id>
<IsInline>true</IsInline>
<MaxLength>1</MaxLength>
<PlaceHolder>sample string 5</PlaceHolder>
<Question>sample string 2</Question>
<QuestionType>sample string 3</QuestionType>
<Row>1</Row>
<lstOptions>
<QuestionOptionDTO>
<DateCreated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">2025-10-30T07:51:03.3089312-07:00</DateCreated>
<DateUpdated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">2025-10-30T07:51:03.3089312-07:00</DateUpdated>
<UserIDCreated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">8</UserIDCreated>
<UserIDUpdated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">9</UserIDUpdated>
<ValidFlag xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">true</ValidFlag>
<Id>1</Id>
<IsChecked>true</IsChecked>
<OptionName>sample string 3</OptionName>
<OptionValue>sample string 4</OptionValue>
<QuestionnaireId>2</QuestionnaireId>
</QuestionOptionDTO>
<QuestionOptionDTO>
<DateCreated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">2025-10-30T07:51:03.3089312-07:00</DateCreated>
<DateUpdated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">2025-10-30T07:51:03.3089312-07:00</DateUpdated>
<UserIDCreated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">8</UserIDCreated>
<UserIDUpdated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">9</UserIDUpdated>
<ValidFlag xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">true</ValidFlag>
<Id>1</Id>
<IsChecked>true</IsChecked>
<OptionName>sample string 3</OptionName>
<OptionValue>sample string 4</OptionValue>
<QuestionnaireId>2</QuestionnaireId>
</QuestionOptionDTO>
</lstOptions>
</QuestionnaireDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AsapResponseOfQuestionnaireDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| isSuccess | boolean |
None. |
|
| message | string |
None. |
|
| jsonObj | QuestionnaireDTO |
None. |
|
| totalCount | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"isSuccess": true,
"message": "sample string 2",
"jsonObj": {
"Id": 1,
"Question": "sample string 2",
"QuestionType": "sample string 3",
"IsInline": true,
"Class": "sample string 4",
"PlaceHolder": "sample string 5",
"MaxLength": 1,
"Row": 1,
"HelpText": "sample string 6",
"lstOptions": [
{
"Id": 1,
"QuestionnaireId": 2,
"OptionName": "sample string 3",
"OptionValue": "sample string 4",
"IsChecked": true,
"ValidFlag": true,
"DateCreated": "2025-10-30T07:51:03.3402012-07:00",
"DateUpdated": "2025-10-30T07:51:03.3402012-07:00",
"UserIDCreated": 8,
"UserIDUpdated": 9
},
{
"Id": 1,
"QuestionnaireId": 2,
"OptionName": "sample string 3",
"OptionValue": "sample string 4",
"IsChecked": true,
"ValidFlag": true,
"DateCreated": "2025-10-30T07:51:03.3402012-07:00",
"DateUpdated": "2025-10-30T07:51:03.3402012-07:00",
"UserIDCreated": 8,
"UserIDUpdated": 9
}
],
"ValidFlag": true,
"DateCreated": "2025-10-30T07:51:03.3402012-07:00",
"DateUpdated": "2025-10-30T07:51:03.3402012-07:00",
"UserIDCreated": 10,
"UserIDUpdated": 11
},
"totalCount": 3
}
application/xml, text/xml
Sample:
<AsapResponseOfQuestionnaireDTOzIntITI8 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.Common">
<isSuccess>true</isSuccess>
<jsonObj xmlns:d2p1="http://schemas.datacontract.org/2004/07/ASAP_BL.DTO.MedicalExam">
<DateCreated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">2025-10-30T07:51:03.3402012-07:00</DateCreated>
<DateUpdated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">2025-10-30T07:51:03.3402012-07:00</DateUpdated>
<UserIDCreated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">10</UserIDCreated>
<UserIDUpdated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">11</UserIDUpdated>
<ValidFlag xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">true</ValidFlag>
<d2p1:Class>sample string 4</d2p1:Class>
<d2p1:HelpText>sample string 6</d2p1:HelpText>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsInline>true</d2p1:IsInline>
<d2p1:MaxLength>1</d2p1:MaxLength>
<d2p1:PlaceHolder>sample string 5</d2p1:PlaceHolder>
<d2p1:Question>sample string 2</d2p1:Question>
<d2p1:QuestionType>sample string 3</d2p1:QuestionType>
<d2p1:Row>1</d2p1:Row>
<d2p1:lstOptions>
<d2p1:QuestionOptionDTO>
<DateCreated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">2025-10-30T07:51:03.3402012-07:00</DateCreated>
<DateUpdated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">2025-10-30T07:51:03.3402012-07:00</DateUpdated>
<UserIDCreated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">8</UserIDCreated>
<UserIDUpdated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">9</UserIDUpdated>
<ValidFlag xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">true</ValidFlag>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsChecked>true</d2p1:IsChecked>
<d2p1:OptionName>sample string 3</d2p1:OptionName>
<d2p1:OptionValue>sample string 4</d2p1:OptionValue>
<d2p1:QuestionnaireId>2</d2p1:QuestionnaireId>
</d2p1:QuestionOptionDTO>
<d2p1:QuestionOptionDTO>
<DateCreated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">2025-10-30T07:51:03.3402012-07:00</DateCreated>
<DateUpdated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">2025-10-30T07:51:03.3402012-07:00</DateUpdated>
<UserIDCreated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">8</UserIDCreated>
<UserIDUpdated xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">9</UserIDUpdated>
<ValidFlag xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">true</ValidFlag>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsChecked>true</d2p1:IsChecked>
<d2p1:OptionName>sample string 3</d2p1:OptionName>
<d2p1:OptionValue>sample string 4</d2p1:OptionValue>
<d2p1:QuestionnaireId>2</d2p1:QuestionnaireId>
</d2p1:QuestionOptionDTO>
</d2p1:lstOptions>
</jsonObj>
<message>sample string 2</message>
<totalCount>3</totalCount>
</AsapResponseOfQuestionnaireDTOzIntITI8>