POST Api/QuestionMaster/UpdateQuestion

Request Information

URI Parameters

None.

Body Parameters

QuestionMaster
NameDescriptionTypeAdditional information
SubjectId

integer

None.

QuestionText

string

None.

QuestionImagePath

string

None.

SelectionType

integer

None.

QuestionType

integer

None.

DifficultyLevel

integer

None.

Hint

string

None.

Marks

decimal number

None.

OptionsJson

string

None.

QuestionId

integer

None.

isActive

integer

None.

quesId

integer

None.

opCode

integer

None.

isException

boolean

None.

exceptionMessage

string

None.

DS

DataSet

None.

id

string

None.

strId

string

None.

userId

integer

None.

status

integer

None.

message

string

None.

PageSize

string

None.

PageIndex

string

None.

responseValue

DataSet

None.

Request Formats

application/json, text/json

Sample:
{
  "subjectId": 1,
  "questionText": "sample string 2",
  "questionImagePath": "sample string 3",
  "selectionType": 4,
  "questionType": 5,
  "difficultyLevel": 6,
  "hint": "sample string 7",
  "marks": 8.0,
  "optionsJson": "sample string 9",
  "questionId": 10,
  "isActive": 11,
  "quesId": 12,
  "opCode": 13,
  "isException": true,
  "exceptionMessage": "sample string 15",
  "ds": null,
  "id": "sample string 16",
  "strId": "sample string 17",
  "userId": 18,
  "status": 19,
  "message": "sample string 20",
  "pageSize": "sample string 21",
  "pageIndex": "sample string 22",
  "responseValue": {}
}

application/xml, text/xml

Sample:
<QuestionMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SMSWebAPI.Models">
  <DS i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/DLLUtility" />
  <PageIndex xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 22</PageIndex>
  <PageSize xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 21</PageSize>
  <exceptionMessage xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 15</exceptionMessage>
  <id xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 16</id>
  <isException xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">true</isException>
  <message xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 20</message>
  <opCode xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">13</opCode>
  <responseValue xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">
    <xs:schema id="sample_x0020_string_x0020_3" targetNamespace="sample string 4" xmlns:mstns="sample string 4" xmlns="sample string 4" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">
      <xs:element name="sample_x0020_string_x0020_3" msdata:IsDataSet="true" msdata:CaseSensitive="true" msdata:UseCurrentLocale="true">
        <xs:complexType>
          <xs:choice minOccurs="0" maxOccurs="unbounded" />
        </xs:complexType>
      </xs:element>
    </xs:schema>
    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" />
  </responseValue>
  <status xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">19</status>
  <strId xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">sample string 17</strId>
  <userId xmlns="http://schemas.datacontract.org/2004/07/DLLUtility">18</userId>
  <DifficultyLevel>6</DifficultyLevel>
  <Hint>sample string 7</Hint>
  <Marks>8</Marks>
  <OptionsJson>sample string 9</OptionsJson>
  <QuestionId>10</QuestionId>
  <QuestionImagePath>sample string 3</QuestionImagePath>
  <QuestionText>sample string 2</QuestionText>
  <QuestionType>5</QuestionType>
  <SelectionType>4</SelectionType>
  <SubjectId>1</SubjectId>
  <isActive>11</isActive>
  <quesId>12</quesId>
</QuestionMaster>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.