POST api/LatestNews/Delete

Request Information

URI Parameters

None.

Body Parameters

LatestNews
NameDescriptionTypeAdditional information
Id

integer

None.

NewsTitle

string

Required

Header

string

Required

NewsText

string

Required

ImageUri

string

None.

ImageId

string

Required

createdDate

string

None.

Priority

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "NewsTitle": "sample string 2",
  "Header": "sample string 3",
  "NewsText": "sample string 4",
  "ImageUri": "sample string 5",
  "ImageId": "sample string 6",
  "createdDate": "sample string 7",
  "Priority": 8
}

application/xml, text/xml

Sample:
<LatestNews xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AMS.ERPC.API.DAL.Model.DataModel">
  <Header>sample string 3</Header>
  <Id>1</Id>
  <ImageId>sample string 6</ImageId>
  <ImageUri>sample string 5</ImageUri>
  <NewsText>sample string 4</NewsText>
  <NewsTitle>sample string 2</NewsTitle>
  <Priority>8</Priority>
  <createdDate>sample string 7</createdDate>
</LatestNews>

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

Response Information

Resource Description

None.