POST api/QuestionDetail/UpsertQuestionDetail

Request Information

URI Parameters

None.

Body Parameters

Collection of UpsertQuestionDetailCommandDto
NameDescriptionTypeAdditional information
QuestionHeaderId

globally unique identifier

None.

OptionType

string

None.

OptionImage

string

None.

OptionText

string

None.

OptionTextFr

string

None.

OptionId

globally unique identifier

None.

IsAnswer

boolean

None.

UserId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "QuestionHeaderId": "ea8957b6-ed62-47be-b8e1-ad686e618bdc",
    "OptionType": "sample string 2",
    "OptionImage": "sample string 3",
    "OptionText": "sample string 4",
    "OptionTextFr": "sample string 5",
    "OptionId": "4d2c4ebc-9f52-486c-b583-4d7499eea937",
    "IsAnswer": true,
    "UserId": "6d22d8bb-040d-4a07-bd60-f8ac98056399"
  },
  {
    "QuestionHeaderId": "ea8957b6-ed62-47be-b8e1-ad686e618bdc",
    "OptionType": "sample string 2",
    "OptionImage": "sample string 3",
    "OptionText": "sample string 4",
    "OptionTextFr": "sample string 5",
    "OptionId": "4d2c4ebc-9f52-486c-b583-4d7499eea937",
    "IsAnswer": true,
    "UserId": "6d22d8bb-040d-4a07-bd60-f8ac98056399"
  }
]

application/xml, text/xml

Sample:
<ArrayOfUpsertQuestionDetailCommandDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Modules.QuestionDetailModule.Model">
  <UpsertQuestionDetailCommandDto>
    <IsAnswer>true</IsAnswer>
    <OptionId>4d2c4ebc-9f52-486c-b583-4d7499eea937</OptionId>
    <OptionImage>sample string 3</OptionImage>
    <OptionText>sample string 4</OptionText>
    <OptionTextFr>sample string 5</OptionTextFr>
    <OptionType>sample string 2</OptionType>
    <QuestionHeaderId>ea8957b6-ed62-47be-b8e1-ad686e618bdc</QuestionHeaderId>
    <UserId>6d22d8bb-040d-4a07-bd60-f8ac98056399</UserId>
  </UpsertQuestionDetailCommandDto>
  <UpsertQuestionDetailCommandDto>
    <IsAnswer>true</IsAnswer>
    <OptionId>4d2c4ebc-9f52-486c-b583-4d7499eea937</OptionId>
    <OptionImage>sample string 3</OptionImage>
    <OptionText>sample string 4</OptionText>
    <OptionTextFr>sample string 5</OptionTextFr>
    <OptionType>sample string 2</OptionType>
    <QuestionHeaderId>ea8957b6-ed62-47be-b8e1-ad686e618bdc</QuestionHeaderId>
    <UserId>6d22d8bb-040d-4a07-bd60-f8ac98056399</UserId>
  </UpsertQuestionDetailCommandDto>
</ArrayOfUpsertQuestionDetailCommandDto>

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 'IList`1'.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>