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": "d9e62e9e-328e-4fe2-b499-f3a93054ee49",
"StateId": "976a5935-3dbf-4f59-a33b-5853e9d0161f",
"StateSectionId": "c949265a-a8fd-4961-9cca-aaf2e5c3de7c",
"QuestionId": "e56b0acd-d27b-4fcc-a8e1-471bd4439a7a",
"Name": "sample string 5",
"Text": "sample string 6",
"Type": "sample string 7",
"OrderIndex": 8,
"Choices": [
{
"Id": "20facc2b-b808-463e-ac60-b786db88decb",
"Text": "sample string 2",
"OrderIndex": 3
},
{
"Id": "20facc2b-b808-463e-ac60-b786db88decb",
"Text": "sample string 2",
"OrderIndex": 3
}
],
"ParentQuestionId": "4edfa302-f3ac-44de-85aa-d7ef2137d2d2"
}
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>20facc2b-b808-463e-ac60-b786db88decb</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
<ChoiceSimple>
<Id>20facc2b-b808-463e-ac60-b786db88decb</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
</Choices>
<Id>d9e62e9e-328e-4fe2-b499-f3a93054ee49</Id>
<Name>sample string 5</Name>
<OrderIndex>8</OrderIndex>
<ParentQuestionId>4edfa302-f3ac-44de-85aa-d7ef2137d2d2</ParentQuestionId>
<QuestionId>e56b0acd-d27b-4fcc-a8e1-471bd4439a7a</QuestionId>
<StateId>976a5935-3dbf-4f59-a33b-5853e9d0161f</StateId>
<StateSectionId>c949265a-a8fd-4961-9cca-aaf2e5c3de7c</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": "e92366b1-de9f-4eae-bf71-0317f7a657d1",
"StateId": "ff222354-43d5-40bd-b2ab-a4f068e92cbc",
"StateSectionId": "e64875e7-0f66-4a68-8e97-6d666892b8b3",
"QuestionId": "95c13e7a-5bff-4b32-8331-436091cc2e01",
"Name": "sample string 5",
"Text": "sample string 6",
"Type": "sample string 7",
"OrderIndex": 8,
"Choices": [
{
"Id": "000288d0-6b2b-40fd-80cd-0f6539b4c08c",
"Text": "sample string 2",
"OrderIndex": 3
},
{
"Id": "000288d0-6b2b-40fd-80cd-0f6539b4c08c",
"Text": "sample string 2",
"OrderIndex": 3
}
],
"ParentQuestionId": "62f665c2-9748-4ce2-a751-5810bf6e234b"
}
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>000288d0-6b2b-40fd-80cd-0f6539b4c08c</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
<ChoiceSimple>
<Id>000288d0-6b2b-40fd-80cd-0f6539b4c08c</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
</Choices>
<Id>e92366b1-de9f-4eae-bf71-0317f7a657d1</Id>
<Name>sample string 5</Name>
<OrderIndex>8</OrderIndex>
<ParentQuestionId>62f665c2-9748-4ce2-a751-5810bf6e234b</ParentQuestionId>
<QuestionId>95c13e7a-5bff-4b32-8331-436091cc2e01</QuestionId>
<StateId>ff222354-43d5-40bd-b2ab-a4f068e92cbc</StateId>
<StateSectionId>e64875e7-0f66-4a68-8e97-6d666892b8b3</StateSectionId>
<Text>sample string 6</Text>
<Type>sample string 7</Type>
</StateQuestionDetail>