POST ClassNewsAPI/RemoveClassNews

Request Information

URI Parameters

None.

Body Parameters

ClassNews
NameDescriptionTypeAdditional information
ClassNewsID

integer

None.

Active

boolean

None.

NewsText

string

None.

pkCourseSectionID

integer

None.

TheNewsDateAdded

date

None.

TheNewsDateAddedStr

string

None.

SelectedSectionArray

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ClassNewsID": 1,
  "Active": true,
  "NewsText": "sample string 3",
  "pkCourseSectionID": 4,
  "TheNewsDateAdded": "2021-01-16T09:34:55.2420958+00:00",
  "TheNewsDateAddedStr": "sample string 6",
  "SelectedSectionArray": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<ClassNews xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QMA2020.Models">
  <Active>true</Active>
  <ClassNewsID>1</ClassNewsID>
  <NewsText>sample string 3</NewsText>
  <SelectedSectionArray xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </SelectedSectionArray>
  <TheNewsDateAdded>2021-01-16T09:34:55.2420958+00:00</TheNewsDateAdded>
  <TheNewsDateAddedStr>sample string 6</TheNewsDateAddedStr>
  <pkCourseSectionID>4</pkCourseSectionID>
</ClassNews>

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

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>