GET v1/take/questionMultipleChoiceSingleSelects/{id}
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 | string |
Required |
Body Parameters
None.
Response Information
Resource Description
TakeQuestionMultipleChoiceSingleSelect| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
|
| Html | string |
None. |
|
| AnsweredWithAnswerSelectId | string |
None. |
|
| EnteredAnsweredWithText | string |
None. |
|
| AnswerSelects | Collection of TakeAnswerSelect |
None. |
Response Codes
- 200 OK: A Question - Multiple Choice, Single Select for the Take returned successfully
- 401 Unauthorized:
- 500 InternalServerError:
Response Formats
application/json, text/json
Sample:
{
"Id": "sample string 1",
"Html": "sample string 2",
"AnsweredWithAnswerSelectId": "sample string 3",
"EnteredAnsweredWithText": "sample string 4",
"AnswerSelects": [
{
"Id": "sample string 1",
"Html": "sample string 2",
"DisplayOrder": 3,
"AllowTextEntry": true
},
{
"Id": "sample string 1",
"Html": "sample string 2",
"DisplayOrder": 3,
"AllowTextEntry": true
}
]
}
text/html
Sample:
{"Id":"sample string 1","Html":"sample string 2","AnsweredWithAnswerSelectId":"sample string 3","EnteredAnsweredWithText":"sample string 4","AnswerSelects":[{"Id":"sample string 1","Html":"sample string 2","DisplayOrder":3,"AllowTextEntry":true},{"Id":"sample string 1","Html":"sample string 2","DisplayOrder":3,"AllowTextEntry":true}]}
application/xml, text/xml
Sample:
<TakeQuestionMultipleChoiceSingleSelect xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Questionnaire.Api.Contracts.v1.Models">
<AnswerSelects>
<TakeAnswerSelect>
<AllowTextEntry>true</AllowTextEntry>
<DisplayOrder>3</DisplayOrder>
<Html>sample string 2</Html>
<Id>sample string 1</Id>
</TakeAnswerSelect>
<TakeAnswerSelect>
<AllowTextEntry>true</AllowTextEntry>
<DisplayOrder>3</DisplayOrder>
<Html>sample string 2</Html>
<Id>sample string 1</Id>
</TakeAnswerSelect>
</AnswerSelects>
<AnsweredWithAnswerSelectId>sample string 3</AnsweredWithAnswerSelectId>
<EnteredAnsweredWithText>sample string 4</EnteredAnsweredWithText>
<Html>sample string 2</Html>
<Id>sample string 1</Id>
</TakeQuestionMultipleChoiceSingleSelect>