POST api/QuestionHeader/UpdateQuestionHeader

Request Information

URI Parameters

None.

Body Parameters

EditQuestionHeaderCommandDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

ContestId

globally unique identifier

None.

QuestionTypeId

globally unique identifier

None.

Sequence

integer

None.

QuestionText

string

None.

QuestionTextFr

string

None.

QuestionSubText

string

None.

QuestionSubTextFr

string

None.

QuestionPoints

integer

None.

BannerUrl

string

None.

ContainsAdvert

boolean

None.

UserId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "2e428e3d-6031-4942-b494-651b7f87c31d",
  "ContestId": "a67b6c29-f236-4a1f-8d65-f3accb86fdf5",
  "QuestionTypeId": "ef8ff303-6244-4dab-9153-b3af2bd1f0f9",
  "Sequence": 4,
  "QuestionText": "sample string 5",
  "QuestionTextFr": "sample string 6",
  "QuestionSubText": "sample string 7",
  "QuestionSubTextFr": "sample string 8",
  "QuestionPoints": 1,
  "BannerUrl": "sample string 9",
  "ContainsAdvert": true,
  "UserId": "6f466a59-40b8-414f-83cc-0660d1c5ea59"
}

application/xml, text/xml

Sample:
<EditQuestionHeaderCommandDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Modules.QuestionHeaderModule.Model">
  <BannerUrl>sample string 9</BannerUrl>
  <ContainsAdvert>true</ContainsAdvert>
  <ContestId>a67b6c29-f236-4a1f-8d65-f3accb86fdf5</ContestId>
  <Id>2e428e3d-6031-4942-b494-651b7f87c31d</Id>
  <QuestionPoints>1</QuestionPoints>
  <QuestionSubText>sample string 7</QuestionSubText>
  <QuestionSubTextFr>sample string 8</QuestionSubTextFr>
  <QuestionText>sample string 5</QuestionText>
  <QuestionTextFr>sample string 6</QuestionTextFr>
  <QuestionTypeId>ef8ff303-6244-4dab-9153-b3af2bd1f0f9</QuestionTypeId>
  <Sequence>4</Sequence>
  <UserId>6f466a59-40b8-414f-83cc-0660d1c5ea59</UserId>
</EditQuestionHeaderCommandDto>

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 'EditQuestionHeaderCommandDto'.

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>