POST Api/Courses/Exams/Questions/Add

Request Information

URI Parameters

None.

Body Parameters

AddQuestionRequest
NameDescriptionTypeAdditional information
idExamQuestion

integer

None.

courseExam

integer

None.

idQuestionType

integer

None.

idLessonRef

integer

None.

question

string

None.

image

string

None.

Request Formats

application/json, text/json

Sample:
{
  "idExamQuestion": 1,
  "courseExam": 2,
  "idQuestionType": 3,
  "idLessonRef": 1,
  "question": "sample string 4",
  "image": "sample string 5"
}

application/xml, text/xml

Sample:
<AddQuestionRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <idExamQuestion>1</idExamQuestion>
  <courseExam>2</courseExam>
  <idQuestionType>3</idQuestionType>
  <idLessonRef>1</idLessonRef>
  <question>sample string 4</question>
  <image>sample string 5</image>
</AddQuestionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AddCourseExamResponse
NameDescriptionTypeAdditional information
success

boolean

None.

error

string

None.

id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "error": "sample string 2",
  "id": 3
}

application/xml, text/xml

Sample:
<AddCourseExamResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <success>true</success>
  <error>sample string 2</error>
  <id>3</id>
</AddCourseExamResponse>