POST v1/take/questionEssays/{id}/set-answer
Return a Take Question - Multiple Choice, Single Select A Take Question - Multiple Choice, Single Select contains the question, the available answers, and the selected answer
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The identifier. |
string |
Required |
Body Parameters
The set take question multiple choice single select.
SetTakeQuestionEssay| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
|
| Answer | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "sample string 1",
"Answer": "sample string 2"
}
text/html
Sample:
{"Id":"sample string 1","Answer":"sample string 2"}
application/xml, text/xml
Sample:
<SetTakeQuestionEssay xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Questionnaire.Api.Contracts.v1.Models"> <Answer>sample string 2</Answer> <Id>sample string 1</Id> </SetTakeQuestionEssay>
Response Information
Resource Description
SetTakeQuestionEssayPostResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
Response Codes
- 200 OK: Answer saved successfully
- 400 BadRequest: Data validation failed, see the response body for more information.
- 401 Unauthorized:
- 500 InternalServerError:
Response Formats
application/json, text/json
Sample:
{
"Success": true
}
text/html
Sample:
{"Success":true}
application/xml, text/xml
Sample:
<SetTakeQuestionEssayPostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Questionnaire.Api.Contracts.v1.Responses"> <Success>true</Success> </SetTakeQuestionEssayPostResponse>