POST api/UpdateExamQuestionWithAnswers

Request Information

URI Parameters

None.

Body Parameters

ExamQuestion
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

Image

string

None.

OrderNumber

integer

None.

ExamQuestionTypeId

integer

None.

ExamId

integer

None.

Degree

decimal number

None.

FilePath

string

None.

IdealAnswerFilePath

string

None.

ExamAnswers

Collection of ExamAnswer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Title": "sample string 2",
  "Image": "sample string 3",
  "OrderNumber": 1,
  "ExamQuestionTypeId": 1,
  "ExamId": 1,
  "Degree": 1.1,
  "FilePath": "sample string 4",
  "IdealAnswerFilePath": "sample string 5",
  "ExamAnswers": [
    {
      "Id": 1,
      "ExamQuestionId": 1,
      "Answer": "sample string 2",
      "IsTrue": true
    },
    {
      "Id": 1,
      "ExamQuestionId": 1,
      "Answer": "sample string 2",
      "IsTrue": true
    }
  ]
}

application/xml, text/xml

Sample:
<ExamQuestion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataAccess.Entities">
  <Degree>1.1</Degree>
  <ExamAnswers>
    <ExamAnswer>
      <Answer>sample string 2</Answer>
      <ExamQuestionId>1</ExamQuestionId>
      <Id>1</Id>
      <IsTrue>true</IsTrue>
    </ExamAnswer>
    <ExamAnswer>
      <Answer>sample string 2</Answer>
      <ExamQuestionId>1</ExamQuestionId>
      <Id>1</Id>
      <IsTrue>true</IsTrue>
    </ExamAnswer>
  </ExamAnswers>
  <ExamId>1</ExamId>
  <ExamQuestionTypeId>1</ExamQuestionTypeId>
  <FilePath>sample string 4</FilePath>
  <Id>1</Id>
  <IdealAnswerFilePath>sample string 5</IdealAnswerFilePath>
  <Image>sample string 3</Image>
  <OrderNumber>1</OrderNumber>
  <Title>sample string 2</Title>
</ExamQuestion>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.