POST api/questionstudy

Request Information

URI Parameters

None.

Body Parameters

StudyQuestionAnswerModel
NameDescriptionTypeAdditional information
question

QuestionModel

None.

studyQuestion

StudyQuestionModel

None.

Answer

Collection of AnswerModel

None.

Request Formats

application/json, text/json

Sample:
{
  "question": {
    "questionId": 1,
    "questionDesc": "sample string 2",
    "questionText": "sample string 3",
    "toolTip": "sample string 4",
    "answerType": "sample string 5",
    "isActive": true,
    "questionCategory": "sample string 6",
    "includeFreeText": true,
    "includePredefined": true,
    "removequestionId": 7
  },
  "studyQuestion": {
    "qtnStdyId": 1,
    "studyId": 2,
    "questionId": 3,
    "questionOrder": 1,
    "isPrescreener": true,
    "isActive": true,
    "answerType": "sample string 4",
    "stGroup": 5,
    "includeFreeText": true,
    "includePredefined": true
  },
  "Answer": [
    {
      "qtnStdyId": 1,
      "answerText": "sample string 2",
      "isCorrect": true,
      "isActive": true,
      "answerId": 3,
      "questionId": 4
    },
    {
      "qtnStdyId": 1,
      "answerText": "sample string 2",
      "isCorrect": true,
      "isActive": true,
      "answerId": 3,
      "questionId": 4
    }
  ]
}

application/xml, text/xml

Sample:
<StudyQuestionAnswerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ECD_SFCData">
  <Answer>
    <AnswerModel>
      <answerId>3</answerId>
      <answerText>sample string 2</answerText>
      <isActive>true</isActive>
      <isCorrect>true</isCorrect>
      <qtnStdyId>1</qtnStdyId>
      <questionId>4</questionId>
    </AnswerModel>
    <AnswerModel>
      <answerId>3</answerId>
      <answerText>sample string 2</answerText>
      <isActive>true</isActive>
      <isCorrect>true</isCorrect>
      <qtnStdyId>1</qtnStdyId>
      <questionId>4</questionId>
    </AnswerModel>
  </Answer>
  <question>
    <answerType>sample string 5</answerType>
    <includeFreeText>true</includeFreeText>
    <includePredefined>true</includePredefined>
    <isActive>true</isActive>
    <questionCategory>sample string 6</questionCategory>
    <questionDesc>sample string 2</questionDesc>
    <questionId>1</questionId>
    <questionText>sample string 3</questionText>
    <removequestionId>7</removequestionId>
    <toolTip>sample string 4</toolTip>
  </question>
  <studyQuestion>
    <answerType>sample string 4</answerType>
    <includeFreeText>true</includeFreeText>
    <includePredefined>true</includePredefined>
    <isActive>true</isActive>
    <isPrescreener>true</isPrescreener>
    <qtnStdyId>1</qtnStdyId>
    <questionId>3</questionId>
    <questionOrder>1</questionOrder>
    <stGroup>5</stGroup>
    <studyId>2</studyId>
  </studyQuestion>
</StudyQuestionAnswerModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>