POST api/v{version}/LecturePlanning/AddNewLecture

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

AddLecture
NameDescriptionTypeAdditional information
SlotID

string

None.

Date

string

None.

CourseId

string

None.

LocationId

string

None.

SubjectId

string

None.

TeacherId

string

None.

BatchId

string

None.

AddedBy

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SlotID": "sample string 1",
  "Date": "sample string 2",
  "CourseId": "sample string 3",
  "LocationId": "sample string 4",
  "SubjectId": "sample string 5",
  "TeacherId": "sample string 6",
  "BatchId": "sample string 7",
  "AddedBy": "sample string 8"
}

application/xml, text/xml

Sample:
<AddLecture xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudbudAPI.V2.Models">
  <AddedBy>sample string 8</AddedBy>
  <BatchId>sample string 7</BatchId>
  <CourseId>sample string 3</CourseId>
  <Date>sample string 2</Date>
  <LocationId>sample string 4</LocationId>
  <SlotID>sample string 1</SlotID>
  <SubjectId>sample string 5</SubjectId>
  <TeacherId>sample string 6</TeacherId>
</AddLecture>

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

Response Information

Resource Description

AddLecture
NameDescriptionTypeAdditional information
SlotID

string

None.

Date

string

None.

CourseId

string

None.

LocationId

string

None.

SubjectId

string

None.

TeacherId

string

None.

BatchId

string

None.

AddedBy

string

None.

Response Formats

application/json, text/json

Sample:
{
  "SlotID": "sample string 1",
  "Date": "sample string 2",
  "CourseId": "sample string 3",
  "LocationId": "sample string 4",
  "SubjectId": "sample string 5",
  "TeacherId": "sample string 6",
  "BatchId": "sample string 7",
  "AddedBy": "sample string 8"
}

application/xml, text/xml

Sample:
<AddLecture xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudbudAPI.V2.Models">
  <AddedBy>sample string 8</AddedBy>
  <BatchId>sample string 7</BatchId>
  <CourseId>sample string 3</CourseId>
  <Date>sample string 2</Date>
  <LocationId>sample string 4</LocationId>
  <SlotID>sample string 1</SlotID>
  <SubjectId>sample string 5</SubjectId>
  <TeacherId>sample string 6</TeacherId>
</AddLecture>