POST api/AddUpdateQBTopic

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
objQBTopic
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "QBTopicID": 1,
  "QBTopicNo": "sample string 2",
  "QBTopicName": "sample string 3",
  "SessionID": 4,
  "StreamID": [
    1,
    2,
    3
  ],
  "CourseID": [
    1,
    2,
    3
  ],
  "BatchID": [
    1,
    2,
    3
  ],
  "SubjectID": 5,
  "Description": "sample string 6",
  "Instruction": "sample string 7",
  "LanguageID": 8,
  "IsNegativeMarking": true,
  "IsVisible": true,
  "IsActive": true,
  "CreatedByUserID": 12,
  "CreatedOnDate": "sample string 13",
  "UserTypeID": 14,
  "UserType": "sample string 15",
  "Language": "sample string 16",
  "Subject": "sample string 17",
  "QuestionTaken": 18.1,
  "TotalTopicQuestions": 19,
  "SessionList": [
    {
      "SessionID": 1,
      "Session": "sample string 2"
    },
    {
      "SessionID": 1,
      "Session": "sample string 2"
    },
    {
      "SessionID": 1,
      "Session": "sample string 2"
    }
  ],
  "StreamList": [
    {
      "StreamID": 1,
      "Stream": "sample string 2",
      "ModeID": 3,
      "ModeName": "sample string 4"
    },
    {
      "StreamID": 1,
      "Stream": "sample string 2",
      "ModeID": 3,
      "ModeName": "sample string 4"
    },
    {
      "StreamID": 1,
      "Stream": "sample string 2",
      "ModeID": 3,
      "ModeName": "sample string 4"
    }
  ],
  "CourseList": [
    {
      "CourseID": 1,
      "Course": "sample string 2",
      "StreamID": 3,
      "Stream": "sample string 4",
      "LumpsumFees": "sample string 5",
      "InstallmentFees": "sample string 6",
      "ExpiryDate": "sample string 7",
      "ShortDescription": "sample string 8",
      "LongDescription1": "sample string 9",
      "LongDescription2": "sample string 10",
      "TotalLectures": "sample string 11",
      "CourseDuration": "sample string 12",
      "TotalDPPs": "sample string 13",
      "TotalTests": "sample string 14",
      "TotalQuestions": "sample string 15",
      "CourseValidity": "sample string 16",
      "TotalLectureHours": "sample string 17",
      "SubjectID": "sample string 18",
      "FacultyID": "sample string 19",
      "Banner1": "sample string 20",
      "Banner2": "sample string 21",
      "DemoVideoLink": "sample string 22",
      "SummaryVideoLink": "sample string 23",
      "CourseTypeID": 24,
      "Subject": "sample string 25",
      "Faculty": "sample string 26",
      "CourseType": "sample string 27"
    },
    {
      "CourseID": 1,
      "Course": "sample string 2",
      "StreamID": 3,
      "Stream": "sample string 4",
      "LumpsumFees": "sample string 5",
      "InstallmentFees": "sample string 6",
      "ExpiryDate": "sample string 7",
      "ShortDescription": "sample string 8",
      "LongDescription1": "sample string 9",
      "LongDescription2": "sample string 10",
      "TotalLectures": "sample string 11",
      "CourseDuration": "sample string 12",
      "TotalDPPs": "sample string 13",
      "TotalTests": "sample string 14",
      "TotalQuestions": "sample string 15",
      "CourseValidity": "sample string 16",
      "TotalLectureHours": "sample string 17",
      "SubjectID": "sample string 18",
      "FacultyID": "sample string 19",
      "Banner1": "sample string 20",
      "Banner2": "sample string 21",
      "DemoVideoLink": "sample string 22",
      "SummaryVideoLink": "sample string 23",
      "CourseTypeID": 24,
      "Subject": "sample string 25",
      "Faculty": "sample string 26",
      "CourseType": "sample string 27"
    },
    {
      "CourseID": 1,
      "Course": "sample string 2",
      "StreamID": 3,
      "Stream": "sample string 4",
      "LumpsumFees": "sample string 5",
      "InstallmentFees": "sample string 6",
      "ExpiryDate": "sample string 7",
      "ShortDescription": "sample string 8",
      "LongDescription1": "sample string 9",
      "LongDescription2": "sample string 10",
      "TotalLectures": "sample string 11",
      "CourseDuration": "sample string 12",
      "TotalDPPs": "sample string 13",
      "TotalTests": "sample string 14",
      "TotalQuestions": "sample string 15",
      "CourseValidity": "sample string 16",
      "TotalLectureHours": "sample string 17",
      "SubjectID": "sample string 18",
      "FacultyID": "sample string 19",
      "Banner1": "sample string 20",
      "Banner2": "sample string 21",
      "DemoVideoLink": "sample string 22",
      "SummaryVideoLink": "sample string 23",
      "CourseTypeID": 24,
      "Subject": "sample string 25",
      "Faculty": "sample string 26",
      "CourseType": "sample string 27"
    }
  ],
  "BatchList": [
    {
      "BatchID": 1,
      "Batch": "sample string 2",
      "CourseID": 3
    },
    {
      "BatchID": 1,
      "Batch": "sample string 2",
      "CourseID": 3
    },
    {
      "BatchID": 1,
      "Batch": "sample string 2",
      "CourseID": 3
    }
  ],
  "SubjectList": [
    {
      "SubjectID": 1,
      "Subject": "sample string 2"
    },
    {
      "SubjectID": 1,
      "Subject": "sample string 2"
    },
    {
      "SubjectID": 1,
      "Subject": "sample string 2"
    }
  ],
  "LanguageList": [
    {
      "LanguageID": 1,
      "Language": "sample string 2"
    },
    {
      "LanguageID": 1,
      "Language": "sample string 2"
    },
    {
      "LanguageID": 1,
      "Language": "sample string 2"
    }
  ]
}

text/html

Sample:
{"QBTopicID":1,"QBTopicNo":"sample string 2","QBTopicName":"sample string 3","SessionID":4,"StreamID":[1,2,3],"CourseID":[1,2,3],"BatchID":[1,2,3],"SubjectID":5,"Description":"sample string 6","Instruction":"sample string 7","LanguageID":8,"IsNegativeMarking":true,"IsVisible":true,"IsActive":true,"CreatedByUserID":12,"CreatedOnDate":"sample string 13","UserTypeID":14,"UserType":"sample string 15","Language":"sample string 16","Subject":"sample string 17","QuestionTaken":18.1,"TotalTopicQuestions":19,"SessionList":[{"SessionID":1,"Session":"sample string 2"},{"SessionID":1,"Session":"sample string 2"},{"SessionID":1,"Session":"sample string 2"}],"StreamList":[{"StreamID":1,"Stream":"sample string 2","ModeID":3,"ModeName":"sample string 4"},{"StreamID":1,"Stream":"sample string 2","ModeID":3,"ModeName":"sample string 4"},{"StreamID":1,"Stream":"sample string 2","ModeID":3,"ModeName":"sample string 4"}],"CourseList":[{"CourseID":1,"Course":"sample string 2","StreamID":3,"Stream":"sample string 4","LumpsumFees":"sample string 5","InstallmentFees":"sample string 6","ExpiryDate":"sample string 7","ShortDescription":"sample string 8","LongDescription1":"sample string 9","LongDescription2":"sample string 10","TotalLectures":"sample string 11","CourseDuration":"sample string 12","TotalDPPs":"sample string 13","TotalTests":"sample string 14","TotalQuestions":"sample string 15","CourseValidity":"sample string 16","TotalLectureHours":"sample string 17","SubjectID":"sample string 18","FacultyID":"sample string 19","Banner1":"sample string 20","Banner2":"sample string 21","DemoVideoLink":"sample string 22","SummaryVideoLink":"sample string 23","CourseTypeID":24,"Subject":"sample string 25","Faculty":"sample string 26","CourseType":"sample string 27"},{"CourseID":1,"Course":"sample string 2","StreamID":3,"Stream":"sample string 4","LumpsumFees":"sample string 5","InstallmentFees":"sample string 6","ExpiryDate":"sample string 7","ShortDescription":"sample string 8","LongDescription1":"sample string 9","LongDescription2":"sample string 10","TotalLectures":"sample string 11","CourseDuration":"sample string 12","TotalDPPs":"sample string 13","TotalTests":"sample string 14","TotalQuestions":"sample string 15","CourseValidity":"sample string 16","TotalLectureHours":"sample string 17","SubjectID":"sample string 18","FacultyID":"sample string 19","Banner1":"sample string 20","Banner2":"sample string 21","DemoVideoLink":"sample string 22","SummaryVideoLink":"sample string 23","CourseTypeID":24,"Subject":"sample string 25","Faculty":"sample string 26","CourseType":"sample string 27"},{"CourseID":1,"Course":"sample string 2","StreamID":3,"Stream":"sample string 4","LumpsumFees":"sample string 5","InstallmentFees":"sample string 6","ExpiryDate":"sample string 7","ShortDescription":"sample string 8","LongDescription1":"sample string 9","LongDescription2":"sample string 10","TotalLectures":"sample string 11","CourseDuration":"sample string 12","TotalDPPs":"sample string 13","TotalTests":"sample string 14","TotalQuestions":"sample string 15","CourseValidity":"sample string 16","TotalLectureHours":"sample string 17","SubjectID":"sample string 18","FacultyID":"sample string 19","Banner1":"sample string 20","Banner2":"sample string 21","DemoVideoLink":"sample string 22","SummaryVideoLink":"sample string 23","CourseTypeID":24,"Subject":"sample string 25","Faculty":"sample string 26","CourseType":"sample string 27"}],"BatchList":[{"BatchID":1,"Batch":"sample string 2","CourseID":3},{"BatchID":1,"Batch":"sample string 2","CourseID":3},{"BatchID":1,"Batch":"sample string 2","CourseID":3}],"SubjectList":[{"SubjectID":1,"Subject":"sample string 2"},{"SubjectID":1,"Subject":"sample string 2"},{"SubjectID":1,"Subject":"sample string 2"}],"LanguageList":[{"LanguageID":1,"Language":"sample string 2"},{"LanguageID":1,"Language":"sample string 2"},{"LanguageID":1,"Language":"sample string 2"}]}

application/xml, text/xml

Sample:
<QBTopicViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ViewModels.QuestionBank">
  <BatchID xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
    <d2p1:int>3</d2p1:int>
  </BatchID>
  <BatchList xmlns:d2p1="http://schemas.datacontract.org/2004/07/ViewModels.Master">
    <d2p1:BatchViewModel>
      <d2p1:Batch>sample string 2</d2p1:Batch>
      <d2p1:BatchID>1</d2p1:BatchID>
      <d2p1:CourseID>3</d2p1:CourseID>
    </d2p1:BatchViewModel>
    <d2p1:BatchViewModel>
      <d2p1:Batch>sample string 2</d2p1:Batch>
      <d2p1:BatchID>1</d2p1:BatchID>
      <d2p1:CourseID>3</d2p1:CourseID>
    </d2p1:BatchViewModel>
    <d2p1:BatchViewModel>
      <d2p1:Batch>sample string 2</d2p1:Batch>
      <d2p1:BatchID>1</d2p1:BatchID>
      <d2p1:CourseID>3</d2p1:CourseID>
    </d2p1:BatchViewModel>
  </BatchList>
  <CourseID xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
    <d2p1:int>3</d2p1:int>
  </CourseID>
  <CourseList xmlns:d2p1="http://schemas.datacontract.org/2004/07/ViewModels.Master">
    <d2p1:CourseViewModel>
      <d2p1:Banner1>sample string 20</d2p1:Banner1>
      <d2p1:Banner2>sample string 21</d2p1:Banner2>
      <d2p1:Course>sample string 2</d2p1:Course>
      <d2p1:CourseDuration>sample string 12</d2p1:CourseDuration>
      <d2p1:CourseID>1</d2p1:CourseID>
      <d2p1:CourseType>sample string 27</d2p1:CourseType>
      <d2p1:CourseTypeID>24</d2p1:CourseTypeID>
      <d2p1:CourseValidity>sample string 16</d2p1:CourseValidity>
      <d2p1:DemoVideoLink>sample string 22</d2p1:DemoVideoLink>
      <d2p1:ExpiryDate>sample string 7</d2p1:ExpiryDate>
      <d2p1:Faculty>sample string 26</d2p1:Faculty>
      <d2p1:FacultyID>sample string 19</d2p1:FacultyID>
      <d2p1:InstallmentFees>sample string 6</d2p1:InstallmentFees>
      <d2p1:LongDescription1>sample string 9</d2p1:LongDescription1>
      <d2p1:LongDescription2>sample string 10</d2p1:LongDescription2>
      <d2p1:LumpsumFees>sample string 5</d2p1:LumpsumFees>
      <d2p1:ShortDescription>sample string 8</d2p1:ShortDescription>
      <d2p1:Stream>sample string 4</d2p1:Stream>
      <d2p1:StreamID>3</d2p1:StreamID>
      <d2p1:Subject>sample string 25</d2p1:Subject>
      <d2p1:SubjectID>sample string 18</d2p1:SubjectID>
      <d2p1:SummaryVideoLink>sample string 23</d2p1:SummaryVideoLink>
      <d2p1:TotalDPPs>sample string 13</d2p1:TotalDPPs>
      <d2p1:TotalLectureHours>sample string 17</d2p1:TotalLectureHours>
      <d2p1:TotalLectures>sample string 11</d2p1:TotalLectures>
      <d2p1:TotalQuestions>sample string 15</d2p1:TotalQuestions>
      <d2p1:TotalTests>sample string 14</d2p1:TotalTests>
    </d2p1:CourseViewModel>
    <d2p1:CourseViewModel>
      <d2p1:Banner1>sample string 20</d2p1:Banner1>
      <d2p1:Banner2>sample string 21</d2p1:Banner2>
      <d2p1:Course>sample string 2</d2p1:Course>
      <d2p1:CourseDuration>sample string 12</d2p1:CourseDuration>
      <d2p1:CourseID>1</d2p1:CourseID>
      <d2p1:CourseType>sample string 27</d2p1:CourseType>
      <d2p1:CourseTypeID>24</d2p1:CourseTypeID>
      <d2p1:CourseValidity>sample string 16</d2p1:CourseValidity>
      <d2p1:DemoVideoLink>sample string 22</d2p1:DemoVideoLink>
      <d2p1:ExpiryDate>sample string 7</d2p1:ExpiryDate>
      <d2p1:Faculty>sample string 26</d2p1:Faculty>
      <d2p1:FacultyID>sample string 19</d2p1:FacultyID>
      <d2p1:InstallmentFees>sample string 6</d2p1:InstallmentFees>
      <d2p1:LongDescription1>sample string 9</d2p1:LongDescription1>
      <d2p1:LongDescription2>sample string 10</d2p1:LongDescription2>
      <d2p1:LumpsumFees>sample string 5</d2p1:LumpsumFees>
      <d2p1:ShortDescription>sample string 8</d2p1:ShortDescription>
      <d2p1:Stream>sample string 4</d2p1:Stream>
      <d2p1:StreamID>3</d2p1:StreamID>
      <d2p1:Subject>sample string 25</d2p1:Subject>
      <d2p1:SubjectID>sample string 18</d2p1:SubjectID>
      <d2p1:SummaryVideoLink>sample string 23</d2p1:SummaryVideoLink>
      <d2p1:TotalDPPs>sample string 13</d2p1:TotalDPPs>
      <d2p1:TotalLectureHours>sample string 17</d2p1:TotalLectureHours>
      <d2p1:TotalLectures>sample string 11</d2p1:TotalLectures>
      <d2p1:TotalQuestions>sample string 15</d2p1:TotalQuestions>
      <d2p1:TotalTests>sample string 14</d2p1:TotalTests>
    </d2p1:CourseViewModel>
    <d2p1:CourseViewModel>
      <d2p1:Banner1>sample string 20</d2p1:Banner1>
      <d2p1:Banner2>sample string 21</d2p1:Banner2>
      <d2p1:Course>sample string 2</d2p1:Course>
      <d2p1:CourseDuration>sample string 12</d2p1:CourseDuration>
      <d2p1:CourseID>1</d2p1:CourseID>
      <d2p1:CourseType>sample string 27</d2p1:CourseType>
      <d2p1:CourseTypeID>24</d2p1:CourseTypeID>
      <d2p1:CourseValidity>sample string 16</d2p1:CourseValidity>
      <d2p1:DemoVideoLink>sample string 22</d2p1:DemoVideoLink>
      <d2p1:ExpiryDate>sample string 7</d2p1:ExpiryDate>
      <d2p1:Faculty>sample string 26</d2p1:Faculty>
      <d2p1:FacultyID>sample string 19</d2p1:FacultyID>
      <d2p1:InstallmentFees>sample string 6</d2p1:InstallmentFees>
      <d2p1:LongDescription1>sample string 9</d2p1:LongDescription1>
      <d2p1:LongDescription2>sample string 10</d2p1:LongDescription2>
      <d2p1:LumpsumFees>sample string 5</d2p1:LumpsumFees>
      <d2p1:ShortDescription>sample string 8</d2p1:ShortDescription>
      <d2p1:Stream>sample string 4</d2p1:Stream>
      <d2p1:StreamID>3</d2p1:StreamID>
      <d2p1:Subject>sample string 25</d2p1:Subject>
      <d2p1:SubjectID>sample string 18</d2p1:SubjectID>
      <d2p1:SummaryVideoLink>sample string 23</d2p1:SummaryVideoLink>
      <d2p1:TotalDPPs>sample string 13</d2p1:TotalDPPs>
      <d2p1:TotalLectureHours>sample string 17</d2p1:TotalLectureHours>
      <d2p1:TotalLectures>sample string 11</d2p1:TotalLectures>
      <d2p1:TotalQuestions>sample string 15</d2p1:TotalQuestions>
      <d2p1:TotalTests>sample string 14</d2p1:TotalTests>
    </d2p1:CourseViewModel>
  </CourseList>
  <CreatedByUserID>12</CreatedByUserID>
  <CreatedOnDate>sample string 13</CreatedOnDate>
  <Description>sample string 6</Description>
  <Instruction>sample string 7</Instruction>
  <IsActive>true</IsActive>
  <IsNegativeMarking>true</IsNegativeMarking>
  <IsVisible>true</IsVisible>
  <Language>sample string 16</Language>
  <LanguageID>8</LanguageID>
  <LanguageList xmlns:d2p1="http://schemas.datacontract.org/2004/07/ViewModels.Master">
    <d2p1:LanguageViewModel>
      <d2p1:Language>sample string 2</d2p1:Language>
      <d2p1:LanguageID>1</d2p1:LanguageID>
    </d2p1:LanguageViewModel>
    <d2p1:LanguageViewModel>
      <d2p1:Language>sample string 2</d2p1:Language>
      <d2p1:LanguageID>1</d2p1:LanguageID>
    </d2p1:LanguageViewModel>
    <d2p1:LanguageViewModel>
      <d2p1:Language>sample string 2</d2p1:Language>
      <d2p1:LanguageID>1</d2p1:LanguageID>
    </d2p1:LanguageViewModel>
  </LanguageList>
  <QBTopicID>1</QBTopicID>
  <QBTopicName>sample string 3</QBTopicName>
  <QBTopicNo>sample string 2</QBTopicNo>
  <QuestionTaken>18.1</QuestionTaken>
  <SessionID>4</SessionID>
  <SessionList xmlns:d2p1="http://schemas.datacontract.org/2004/07/ViewModels.Master">
    <d2p1:SessionViewModel>
      <d2p1:Session>sample string 2</d2p1:Session>
      <d2p1:SessionID>1</d2p1:SessionID>
    </d2p1:SessionViewModel>
    <d2p1:SessionViewModel>
      <d2p1:Session>sample string 2</d2p1:Session>
      <d2p1:SessionID>1</d2p1:SessionID>
    </d2p1:SessionViewModel>
    <d2p1:SessionViewModel>
      <d2p1:Session>sample string 2</d2p1:Session>
      <d2p1:SessionID>1</d2p1:SessionID>
    </d2p1:SessionViewModel>
  </SessionList>
  <StreamID xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
    <d2p1:int>3</d2p1:int>
  </StreamID>
  <StreamList xmlns:d2p1="http://schemas.datacontract.org/2004/07/ViewModels.Master">
    <d2p1:StreamViewModel>
      <d2p1:ModeID>3</d2p1:ModeID>
      <d2p1:ModeName>sample string 4</d2p1:ModeName>
      <d2p1:Stream>sample string 2</d2p1:Stream>
      <d2p1:StreamID>1</d2p1:StreamID>
    </d2p1:StreamViewModel>
    <d2p1:StreamViewModel>
      <d2p1:ModeID>3</d2p1:ModeID>
      <d2p1:ModeName>sample string 4</d2p1:ModeName>
      <d2p1:Stream>sample string 2</d2p1:Stream>
      <d2p1:StreamID>1</d2p1:StreamID>
    </d2p1:StreamViewModel>
    <d2p1:StreamViewModel>
      <d2p1:ModeID>3</d2p1:ModeID>
      <d2p1:ModeName>sample string 4</d2p1:ModeName>
      <d2p1:Stream>sample string 2</d2p1:Stream>
      <d2p1:StreamID>1</d2p1:StreamID>
    </d2p1:StreamViewModel>
  </StreamList>
  <Subject>sample string 17</Subject>
  <SubjectID>5</SubjectID>
  <SubjectList xmlns:d2p1="http://schemas.datacontract.org/2004/07/ViewModels.Master">
    <d2p1:SubjectViewModel>
      <d2p1:Subject>sample string 2</d2p1:Subject>
      <d2p1:SubjectID>1</d2p1:SubjectID>
    </d2p1:SubjectViewModel>
    <d2p1:SubjectViewModel>
      <d2p1:Subject>sample string 2</d2p1:Subject>
      <d2p1:SubjectID>1</d2p1:SubjectID>
    </d2p1:SubjectViewModel>
    <d2p1:SubjectViewModel>
      <d2p1:Subject>sample string 2</d2p1:Subject>
      <d2p1:SubjectID>1</d2p1:SubjectID>
    </d2p1:SubjectViewModel>
  </SubjectList>
  <TotalTopicQuestions>19</TotalTopicQuestions>
  <UserType>sample string 15</UserType>
  <UserTypeID>14</UserTypeID>
</QBTopicViewModel>

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