POST api/v1/general/courses/delete

Request Information

URI Parameters

None.

Body Parameters

CourseModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

Required

Max length: 100

ProgramId

integer

Required

DepartmentId

integer

Required

Points

integer

Required

InstrumentTypeId

integer

None.

NextYearAutomaticCourseIdUpgrade

integer

None.

IsIndividual

boolean

Required

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "ProgramId": 3,
  "DepartmentId": 4,
  "Points": 5,
  "InstrumentTypeId": 1,
  "NextYearAutomaticCourseIdUpgrade": 1,
  "IsIndividual": true
}

application/xml, text/xml

Sample:
<CourseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models">
  <DepartmentId>4</DepartmentId>
  <Id>1</Id>
  <InstrumentTypeId>1</InstrumentTypeId>
  <IsIndividual>true</IsIndividual>
  <Name>sample string 2</Name>
  <NextYearAutomaticCourseIdUpgrade>1</NextYearAutomaticCourseIdUpgrade>
  <Points>5</Points>
  <ProgramId>3</ProgramId>
</CourseModel>

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

Response Information

Resource Description

CourseModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

Required

Max length: 100

ProgramId

integer

Required

DepartmentId

integer

Required

Points

integer

Required

InstrumentTypeId

integer

None.

NextYearAutomaticCourseIdUpgrade

integer

None.

IsIndividual

boolean

Required

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "ProgramId": 3,
  "DepartmentId": 4,
  "Points": 5,
  "InstrumentTypeId": 1,
  "NextYearAutomaticCourseIdUpgrade": 1,
  "IsIndividual": true
}

application/xml, text/xml

Sample:
<CourseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models">
  <DepartmentId>4</DepartmentId>
  <Id>1</Id>
  <InstrumentTypeId>1</InstrumentTypeId>
  <IsIndividual>true</IsIndividual>
  <Name>sample string 2</Name>
  <NextYearAutomaticCourseIdUpgrade>1</NextYearAutomaticCourseIdUpgrade>
  <Points>5</Points>
  <ProgramId>3</ProgramId>
</CourseModel>