POST api/Survey/FillOutSurvey
填寫問卷
Request Information
URI Parameters
None.
Body Parameters
FillOutSurveyRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| survey_code | string |
None. |
|
| options | Collection of SurveyOptionAPIDTO |
None. |
|
| encrypted_key | string |
None. |
|
| data_string | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"survey_code": "sample string 1",
"options": [
{
"item_number": "sample string 1",
"item_number2": "sample string 2",
"item_number3": "sample string 3",
"value": "sample string 4",
"text_limit": 5,
"text_validation_type": "sample string 6",
"option_name": "sample string 7",
"option_x_axis_name": "sample string 8",
"option_y_axis_name": "sample string 9",
"number_min": 10,
"number_max": 11,
"number_step": 12,
"number_unit": "sample string 13",
"date_range_from": "2026-07-16T17:33:11.3690153+08:00",
"date_range_end": "2026-07-16T17:33:11.3690153+08:00"
},
{
"item_number": "sample string 1",
"item_number2": "sample string 2",
"item_number3": "sample string 3",
"value": "sample string 4",
"text_limit": 5,
"text_validation_type": "sample string 6",
"option_name": "sample string 7",
"option_x_axis_name": "sample string 8",
"option_y_axis_name": "sample string 9",
"number_min": 10,
"number_max": 11,
"number_step": 12,
"number_unit": "sample string 13",
"date_range_from": "2026-07-16T17:33:11.3690153+08:00",
"date_range_end": "2026-07-16T17:33:11.3690153+08:00"
}
],
"encrypted_key": "sample string 2",
"data_string": "sample string 3"
}
application/xml, text/xml
Sample:
<FillOutSurveyRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoodApi.API_DataTransferObject">
<data_string>sample string 3</data_string>
<encrypted_key>sample string 2</encrypted_key>
<options>
<SurveyOptionAPIDTO>
<date_range_end>2026-07-16T17:33:11.3690153+08:00</date_range_end>
<date_range_from>2026-07-16T17:33:11.3690153+08:00</date_range_from>
<item_number>sample string 1</item_number>
<item_number2>sample string 2</item_number2>
<item_number3>sample string 3</item_number3>
<number_max>11</number_max>
<number_min>10</number_min>
<number_step>12</number_step>
<number_unit>sample string 13</number_unit>
<option_name>sample string 7</option_name>
<option_x_axis_name>sample string 8</option_x_axis_name>
<option_y_axis_name>sample string 9</option_y_axis_name>
<text_limit>5</text_limit>
<text_validation_type>sample string 6</text_validation_type>
<value>sample string 4</value>
</SurveyOptionAPIDTO>
<SurveyOptionAPIDTO>
<date_range_end>2026-07-16T17:33:11.3690153+08:00</date_range_end>
<date_range_from>2026-07-16T17:33:11.3690153+08:00</date_range_from>
<item_number>sample string 1</item_number>
<item_number2>sample string 2</item_number2>
<item_number3>sample string 3</item_number3>
<number_max>11</number_max>
<number_min>10</number_min>
<number_step>12</number_step>
<number_unit>sample string 13</number_unit>
<option_name>sample string 7</option_name>
<option_x_axis_name>sample string 8</option_x_axis_name>
<option_y_axis_name>sample string 9</option_y_axis_name>
<text_limit>5</text_limit>
<text_validation_type>sample string 6</text_validation_type>
<value>sample string 4</value>
</SurveyOptionAPIDTO>
</options>
<survey_code>sample string 1</survey_code>
</FillOutSurveyRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>