POST api/test/answer/create
Request Information
URI Parameters
None.
Body Parameters
TestV2AnswersDTOWName | Description | Type | Additional information |
---|---|---|---|
question_id | integer |
Required |
|
text | string |
Required Max length: 2000 |
|
value | string |
Max length: 255 |
|
is_answer | boolean |
None. |
|
ranking_order | integer |
None. |
|
has_image | boolean |
Required |
|
doc_file_upload | Collection of byte |
None. |
|
doc_name | string |
Max length: 100 |
|
doc_extension | string |
Max length: 100 |
|
doc_size | decimal number |
None. |
|
ranking | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "question_id": 1, "text": "sample string 2", "value": "sample string 3", "is_answer": true, "ranking_order": 1, "has_image": true, "doc_file_upload": "QEA=", "doc_name": "sample string 6", "doc_extension": "sample string 7", "doc_size": 1.0, "ranking": 1 }
application/xml, text/xml
Sample:
<TestV2AnswersDTOW xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Xceed365EngageApi.core.DTOs.Writable"> <doc_extension>sample string 7</doc_extension> <doc_file_upload>QEA=</doc_file_upload> <doc_name>sample string 6</doc_name> <doc_size>1</doc_size> <has_image>true</has_image> <is_answer>true</is_answer> <question_id>1</question_id> <ranking>1</ranking> <ranking_order>1</ranking_order> <text>sample string 2</text> <value>sample string 3</value> </TestV2AnswersDTOW>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.