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": "509038d3-a5d9-4f36-821a-ba60f0bce404",
"StateId": "f54bd0e4-5bcc-4ad3-bc78-4caf6e8eed7f",
"StateSectionId": "e0dc7484-4f73-4225-a4b9-46e4c4f81a0f",
"QuestionId": "87d8a63a-e979-4c9e-b546-26105e5ebcf3",
"Name": "sample string 5",
"Text": "sample string 6",
"Type": "sample string 7",
"OrderIndex": 8,
"Choices": [
{
"Id": "e3c8424e-0886-4370-b4e5-5c9cf6911f23",
"Text": "sample string 2",
"OrderIndex": 3
},
{
"Id": "e3c8424e-0886-4370-b4e5-5c9cf6911f23",
"Text": "sample string 2",
"OrderIndex": 3
}
],
"ParentQuestionId": "5450ab5f-599d-466a-87d4-afb6253a6076"
}
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>e3c8424e-0886-4370-b4e5-5c9cf6911f23</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
<ChoiceSimple>
<Id>e3c8424e-0886-4370-b4e5-5c9cf6911f23</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
</Choices>
<Id>509038d3-a5d9-4f36-821a-ba60f0bce404</Id>
<Name>sample string 5</Name>
<OrderIndex>8</OrderIndex>
<ParentQuestionId>5450ab5f-599d-466a-87d4-afb6253a6076</ParentQuestionId>
<QuestionId>87d8a63a-e979-4c9e-b546-26105e5ebcf3</QuestionId>
<StateId>f54bd0e4-5bcc-4ad3-bc78-4caf6e8eed7f</StateId>
<StateSectionId>e0dc7484-4f73-4225-a4b9-46e4c4f81a0f</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": "08ad5907-4ab3-4ca7-b25c-8fec9e48b17c",
"StateId": "c48097ad-280f-4da9-866d-bee35a9f9105",
"StateSectionId": "e31b5712-fa33-4f08-af18-2870a651f02e",
"QuestionId": "2396d9bb-8400-466f-84c6-eeaf852c223c",
"Name": "sample string 5",
"Text": "sample string 6",
"Type": "sample string 7",
"OrderIndex": 8,
"Choices": [
{
"Id": "275c9ced-6c31-4a30-abff-1cfd4624aa9c",
"Text": "sample string 2",
"OrderIndex": 3
},
{
"Id": "275c9ced-6c31-4a30-abff-1cfd4624aa9c",
"Text": "sample string 2",
"OrderIndex": 3
}
],
"ParentQuestionId": "9fc82271-5f7f-4489-8e43-a170ee89b376"
}
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>275c9ced-6c31-4a30-abff-1cfd4624aa9c</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
<ChoiceSimple>
<Id>275c9ced-6c31-4a30-abff-1cfd4624aa9c</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
</Choices>
<Id>08ad5907-4ab3-4ca7-b25c-8fec9e48b17c</Id>
<Name>sample string 5</Name>
<OrderIndex>8</OrderIndex>
<ParentQuestionId>9fc82271-5f7f-4489-8e43-a170ee89b376</ParentQuestionId>
<QuestionId>2396d9bb-8400-466f-84c6-eeaf852c223c</QuestionId>
<StateId>c48097ad-280f-4da9-866d-bee35a9f9105</StateId>
<StateSectionId>e31b5712-fa33-4f08-af18-2870a651f02e</StateSectionId>
<Text>sample string 6</Text>
<Type>sample string 7</Type>
</StateQuestionDetail>