PUT api/Question

Request Information

URI Parameters

None.

Body Parameters

Question
NameDescriptionTypeAdditional information
RecordNo

integer

None.

QuestionName

string

None.

MockTestFK

integer

None.

QuestionTypeFk

integer

None.

QuestionType

QuestionType

None.

Explanation

string

None.

CreatedOn

date

None.

UpdatedOn

date

None.

IsDeleted

boolean

None.

QuestionOption

Collection of QuestionOption

None.

DropDownName

string

None.

SampleEssay

string

None.

LetterGuide

string

None.

Request Formats

application/json, text/json

Sample:
{
  "RecordNo": 1,
  "QuestionName": "sample string 2",
  "MockTestFK": 1,
  "QuestionTypeFk": 4,
  "QuestionType": {
    "RecordNo": 1,
    "QuestionTypeName": "sample string 2",
    "CreatedOn": "2024-03-28T22:55:08.3387478+00:00",
    "UpdatedOn": "2024-03-28T22:55:08.3387478+00:00",
    "IsDeleted": true
  },
  "Explanation": "sample string 5",
  "CreatedOn": "2024-03-28T22:55:08.3387478+00:00",
  "UpdatedOn": "2024-03-28T22:55:08.3387478+00:00",
  "IsDeleted": true,
  "QuestionOption": [
    {
      "RecordNo": 1,
      "OptionName": "sample string 2",
      "Discription": "sample string 3",
      "IsNameVisible": true,
      "IsDiscriptionVisible": true,
      "QuestionFK": 6,
      "CreatedOn": "2024-03-28T22:55:08.3387478+00:00",
      "UpdatedOn": "2024-03-28T22:55:08.3387478+00:00",
      "IsDeleted": true
    },
    {
      "RecordNo": 1,
      "OptionName": "sample string 2",
      "Discription": "sample string 3",
      "IsNameVisible": true,
      "IsDiscriptionVisible": true,
      "QuestionFK": 6,
      "CreatedOn": "2024-03-28T22:55:08.3387478+00:00",
      "UpdatedOn": "2024-03-28T22:55:08.3387478+00:00",
      "IsDeleted": true
    }
  ],
  "DropDownName": "1-sample string 2",
  "SampleEssay": "sample string 8",
  "LetterGuide": "sample string 9"
}

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 'TrishAcademy.Models.QuestionOption' 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 'TrishAcademy.Models.QuestionOption' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.