POST api/questions

Request Information

URI Parameters

None.

Body Parameters

Collection of globally unique identifier

Request Formats

application/json, text/json

Sample:
[
  "8e5e2b27-b839-4599-82ba-642b42703c1b",
  "a45a5101-1d99-42fa-9186-c9654f53899b"
]

application/xml, text/xml

Sample:
<ArrayOfguid xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <guid>8e5e2b27-b839-4599-82ba-642b42703c1b</guid>
  <guid>a45a5101-1d99-42fa-9186-c9654f53899b</guid>
</ArrayOfguid>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

Collection of QuestionDetail
NameDescriptionTypeAdditional information
HelpText

string

None.

Type

string

None.

Choices

Collection of ChoiceSimple

None.

ParentQuestionId

globally unique identifier

None.

ParentChoiceId

globally unique identifier

None.

ParentAnswerId

globally unique identifier

None.

Answers

Collection of AnswerDetail

None.

SubQuestions

Collection of QuestionDetail

None.

Template

string

None.

UseUpdateTemplate

boolean

None.

Validation

string

None.

Formatting

string

None.

Required

boolean

None.

Id

globally unique identifier

None.

CaseSectionId

globally unique identifier

None.

Text

string

None.

OrderIndex

integer

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'XCapture.DTO.QuestionDetail'. Path '[0].Answers[0].SubQuestions'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'XCapture.DTO.QuestionDetail'. Path '[0].Answers[0].SubQuestions'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'XCapture.DTO.AnswerDetail' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'XCapture.DTO.AnswerDetail' contains cycles and cannot be serialized if reference tracking is disabled.