POST v1/take/questionMultipleChoiceSingleSelects/{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.
SetTakeQuestionMultipleChoiceSingleSelect| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
|
| AnswerSelectId | string |
None. |
|
| EnteredAnswerText | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "sample string 1",
"AnswerSelectId": "sample string 2",
"EnteredAnswerText": "sample string 3"
}
text/html
Sample:
{"Id":"sample string 1","AnswerSelectId":"sample string 2","EnteredAnswerText":"sample string 3"}
application/xml, text/xml
Sample:
<SetTakeQuestionMultipleChoiceSingleSelect xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Questionnaire.Api.Contracts.v1.Models"> <AnswerSelectId>sample string 2</AnswerSelectId> <EnteredAnswerText>sample string 3</EnteredAnswerText> <Id>sample string 1</Id> </SetTakeQuestionMultipleChoiceSingleSelect>
Response Information
Resource Description
SetTakeQuestionMultipleChoiceSingleSelectPostResponse| 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:
<SetTakeQuestionMultipleChoiceSingleSelectPostResponse 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> </SetTakeQuestionMultipleChoiceSingleSelectPostResponse>