POST CoursesAPI/UpdateCourse

Request Information

URI Parameters

None.

Body Parameters

Courses
NameDescriptionTypeAdditional information
pkCourseID

integer

None.

Active

boolean

None.

Comments

string

None.

CourseDescription

string

None.

CourseID

string

None.

CourseName

string

None.

CourseTypeID

integer

None.

CreditValue

integer

None.

DateDeveloped

date

None.

DateDevelopedStr

string

None.

Department

string

None.

PrerequisiteText

string

None.

Programme

string

None.

LastRevision

date

None.

LastRevisionStr

string

None.

LectureHours

decimal number

None.

MaxAge

integer

None.

MinAge

integer

None.

CourseType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "pkCourseID": 1,
  "Active": true,
  "Comments": "sample string 3",
  "CourseDescription": "sample string 4",
  "CourseID": "sample string 5",
  "CourseName": "sample string 6",
  "CourseTypeID": 7,
  "CreditValue": 8,
  "DateDeveloped": "2021-01-23T08:05:52.4009713+00:00",
  "DateDevelopedStr": "sample string 10",
  "Department": "sample string 11",
  "PrerequisiteText": "sample string 12",
  "Programme": "sample string 13",
  "LastRevision": "2021-01-23T08:05:52.4009713+00:00",
  "LastRevisionStr": "sample string 14",
  "LectureHours": 15.0,
  "MaxAge": 16,
  "MinAge": 17,
  "CourseType": "sample string 18"
}

application/xml, text/xml

Sample:
<Courses xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QMA2020.Models">
  <Active>true</Active>
  <Comments>sample string 3</Comments>
  <CourseDescription>sample string 4</CourseDescription>
  <CourseID>sample string 5</CourseID>
  <CourseName>sample string 6</CourseName>
  <CourseType>sample string 18</CourseType>
  <CourseTypeID>7</CourseTypeID>
  <CreditValue>8</CreditValue>
  <DateDeveloped>2021-01-23T08:05:52.4009713+00:00</DateDeveloped>
  <DateDevelopedStr>sample string 10</DateDevelopedStr>
  <Department>sample string 11</Department>
  <LastRevision>2021-01-23T08:05:52.4009713+00:00</LastRevision>
  <LastRevisionStr>sample string 14</LastRevisionStr>
  <LectureHours>15</LectureHours>
  <MaxAge>16</MaxAge>
  <MinAge>17</MinAge>
  <PrerequisiteText>sample string 12</PrerequisiteText>
  <Programme>sample string 13</Programme>
  <pkCourseID>1</pkCourseID>
</Courses>

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

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

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