POST api/docQuizQuestion

Insert a new record into the QuizQuestions table.

Request Information

URI Parameters

None.

Body Parameters

docQuizQuestionDb
NameDescriptionTypeAdditional information
QuestionID

integer

None.

QuizID

integer

Required

Sequence

integer

None.

Text

string

Required

Max length: 1200

Notes

string

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Request Formats

application/json, text/json

Sample:
{
  "results": null,
  "QuestionID": 1,
  "QuizID": 2,
  "Sequence": 3,
  "Text": "sample string 4",
  "Notes": "sample string 5",
  "CreatedBy": 6,
  "CreatedDate": "2025-12-06T23:42:53.5484288+00:00",
  "UpdatedBy": 8,
  "UpdatedDate": "2025-12-06T23:42:53.5484288+00:00"
}

application/xml, text/xml

Sample:
<docQuizQuestionDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <CreatedBy>6</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:42:53.5484288Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <Notes>sample string 5</Notes>
  <QuestionID>1</QuestionID>
  <QuizID>2</QuizID>
  <Sequence>3</Sequence>
  <Text>sample string 4</Text>
  <UpdatedBy>8</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:42:53.5484288Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
</docQuizQuestionDb>

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

Response Information

Resource Description

docQuizQuestionDb
NameDescriptionTypeAdditional information
QuestionID

integer

None.

QuizID

integer

Required

Sequence

integer

None.

Text

string

Required

Max length: 1200

Notes

string

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Response Formats

application/json, text/json

Sample:
{
  "results": null,
  "QuestionID": 1,
  "QuizID": 2,
  "Sequence": 3,
  "Text": "sample string 4",
  "Notes": "sample string 5",
  "CreatedBy": 6,
  "CreatedDate": "2025-12-06T23:42:53.5484288+00:00",
  "UpdatedBy": 8,
  "UpdatedDate": "2025-12-06T23:42:53.5484288+00:00"
}

application/xml, text/xml

Sample:
<docQuizQuestionDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <CreatedBy>6</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:42:53.5484288Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <Notes>sample string 5</Notes>
  <QuestionID>1</QuestionID>
  <QuizID>2</QuizID>
  <Sequence>3</Sequence>
  <Text>sample string 4</Text>
  <UpdatedBy>8</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:42:53.5484288Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
</docQuizQuestionDb>