POST api/Questions
Request Information
URI Parameters
None.
Body Parameters
StateQuestionDetail| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| StateId | globally unique identifier |
None. |
|
| StateSectionId | globally unique identifier |
None. |
|
| QuestionId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Text | string |
None. |
|
| Type | string |
None. |
|
| OrderIndex | integer |
None. |
|
| Choices | Collection of ChoiceSimple |
None. |
|
| ParentQuestionId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "cc10b352-4681-4405-8e54-1869d07bef57",
"StateId": "93f83147-1f16-4500-852d-c50e77056850",
"StateSectionId": "02aa5836-e9f3-4bc3-9b15-8f14d7dcd3b9",
"QuestionId": "234f03f4-1591-4e7f-96e1-c4600797d6d4",
"Name": "sample string 5",
"Text": "sample string 6",
"Type": "sample string 7",
"OrderIndex": 8,
"Choices": [
{
"Id": "c5dfdd0a-e5c4-4c53-8247-2a52d825c0c6",
"Text": "sample string 2",
"OrderIndex": 3
},
{
"Id": "c5dfdd0a-e5c4-4c53-8247-2a52d825c0c6",
"Text": "sample string 2",
"OrderIndex": 3
}
],
"ParentQuestionId": "70fff13b-968e-4dc7-8d97-0fb55bd826b9"
}
application/xml, text/xml
Sample:
<StateQuestionDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Admin.DTO">
<Choices>
<ChoiceSimple>
<Id>c5dfdd0a-e5c4-4c53-8247-2a52d825c0c6</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
<ChoiceSimple>
<Id>c5dfdd0a-e5c4-4c53-8247-2a52d825c0c6</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
</Choices>
<Id>cc10b352-4681-4405-8e54-1869d07bef57</Id>
<Name>sample string 5</Name>
<OrderIndex>8</OrderIndex>
<ParentQuestionId>70fff13b-968e-4dc7-8d97-0fb55bd826b9</ParentQuestionId>
<QuestionId>234f03f4-1591-4e7f-96e1-c4600797d6d4</QuestionId>
<StateId>93f83147-1f16-4500-852d-c50e77056850</StateId>
<StateSectionId>02aa5836-e9f3-4bc3-9b15-8f14d7dcd3b9</StateSectionId>
<Text>sample string 6</Text>
<Type>sample string 7</Type>
</StateQuestionDetail>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
StateQuestionDetail| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| StateId | globally unique identifier |
None. |
|
| StateSectionId | globally unique identifier |
None. |
|
| QuestionId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Text | string |
None. |
|
| Type | string |
None. |
|
| OrderIndex | integer |
None. |
|
| Choices | Collection of ChoiceSimple |
None. |
|
| ParentQuestionId | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": "6cb2114b-5789-446f-a18e-d06cc0ec1d15",
"StateId": "b8428823-7204-46f8-81af-cfaf40dc2174",
"StateSectionId": "6ae0c433-24a9-4983-a563-b803b2de13b3",
"QuestionId": "6466a536-50e2-486d-a6f9-5ff99e5906ea",
"Name": "sample string 5",
"Text": "sample string 6",
"Type": "sample string 7",
"OrderIndex": 8,
"Choices": [
{
"Id": "3ad76e50-9be5-41e1-89bc-b3ed165eabcd",
"Text": "sample string 2",
"OrderIndex": 3
},
{
"Id": "3ad76e50-9be5-41e1-89bc-b3ed165eabcd",
"Text": "sample string 2",
"OrderIndex": 3
}
],
"ParentQuestionId": "ddefda66-bf86-4cf2-8b9b-b467823bdbe8"
}
application/xml, text/xml
Sample:
<StateQuestionDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Admin.DTO">
<Choices>
<ChoiceSimple>
<Id>3ad76e50-9be5-41e1-89bc-b3ed165eabcd</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
<ChoiceSimple>
<Id>3ad76e50-9be5-41e1-89bc-b3ed165eabcd</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
</Choices>
<Id>6cb2114b-5789-446f-a18e-d06cc0ec1d15</Id>
<Name>sample string 5</Name>
<OrderIndex>8</OrderIndex>
<ParentQuestionId>ddefda66-bf86-4cf2-8b9b-b467823bdbe8</ParentQuestionId>
<QuestionId>6466a536-50e2-486d-a6f9-5ff99e5906ea</QuestionId>
<StateId>b8428823-7204-46f8-81af-cfaf40dc2174</StateId>
<StateSectionId>6ae0c433-24a9-4983-a563-b803b2de13b3</StateSectionId>
<Text>sample string 6</Text>
<Type>sample string 7</Type>
</StateQuestionDetail>