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": "f9696418-88c2-4117-b4bd-0eb96fdf6a16",
"StateId": "14c06b0a-6a1e-469e-8c4e-7ad79d5b8039",
"StateSectionId": "b9416b3a-b17a-460c-acb2-a0e05f5ed0dd",
"QuestionId": "fd2233c5-7aad-4342-8296-a6028ad5a9fd",
"Name": "sample string 5",
"Text": "sample string 6",
"Type": "sample string 7",
"OrderIndex": 8,
"Choices": [
{
"Id": "bab5b1ef-6579-4805-b7b6-a4ac2c7b3310",
"Text": "sample string 2",
"OrderIndex": 3
},
{
"Id": "bab5b1ef-6579-4805-b7b6-a4ac2c7b3310",
"Text": "sample string 2",
"OrderIndex": 3
}
],
"ParentQuestionId": "96c0d871-3791-4f2c-8edc-b7cd6a3b5bef"
}
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>bab5b1ef-6579-4805-b7b6-a4ac2c7b3310</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
<ChoiceSimple>
<Id>bab5b1ef-6579-4805-b7b6-a4ac2c7b3310</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
</Choices>
<Id>f9696418-88c2-4117-b4bd-0eb96fdf6a16</Id>
<Name>sample string 5</Name>
<OrderIndex>8</OrderIndex>
<ParentQuestionId>96c0d871-3791-4f2c-8edc-b7cd6a3b5bef</ParentQuestionId>
<QuestionId>fd2233c5-7aad-4342-8296-a6028ad5a9fd</QuestionId>
<StateId>14c06b0a-6a1e-469e-8c4e-7ad79d5b8039</StateId>
<StateSectionId>b9416b3a-b17a-460c-acb2-a0e05f5ed0dd</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": "7f730c23-8455-4c61-9d74-471f505b9112",
"StateId": "5d9f68d7-3221-4c24-a0df-51a0b6e5a098",
"StateSectionId": "2d66c2e2-ae3b-4974-b2e6-5ba8e219de49",
"QuestionId": "caa1287f-2269-4e04-95c4-4e9c92ec5a8c",
"Name": "sample string 5",
"Text": "sample string 6",
"Type": "sample string 7",
"OrderIndex": 8,
"Choices": [
{
"Id": "f012ca38-89ee-49e8-8949-b82f9ff1c29c",
"Text": "sample string 2",
"OrderIndex": 3
},
{
"Id": "f012ca38-89ee-49e8-8949-b82f9ff1c29c",
"Text": "sample string 2",
"OrderIndex": 3
}
],
"ParentQuestionId": "bb557e89-a4c9-45b7-a7a8-d78cae75bed5"
}
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>f012ca38-89ee-49e8-8949-b82f9ff1c29c</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
<ChoiceSimple>
<Id>f012ca38-89ee-49e8-8949-b82f9ff1c29c</Id>
<OrderIndex>3</OrderIndex>
<Text>sample string 2</Text>
</ChoiceSimple>
</Choices>
<Id>7f730c23-8455-4c61-9d74-471f505b9112</Id>
<Name>sample string 5</Name>
<OrderIndex>8</OrderIndex>
<ParentQuestionId>bb557e89-a4c9-45b7-a7a8-d78cae75bed5</ParentQuestionId>
<QuestionId>caa1287f-2269-4e04-95c4-4e9c92ec5a8c</QuestionId>
<StateId>5d9f68d7-3221-4c24-a0df-51a0b6e5a098</StateId>
<StateSectionId>2d66c2e2-ae3b-4974-b2e6-5ba8e219de49</StateSectionId>
<Text>sample string 6</Text>
<Type>sample string 7</Type>
</StateQuestionDetail>