PUT api/News/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

News
NameDescriptionTypeAdditional information
id

integer

None.

date

date

None.

title

string

None.

htmlContent

string

None.

image

Collection of byte

None.

newsChecked

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "date": "2025-12-27T17:21:37.9856508+01:00",
  "title": "sample string 3",
  "htmlContent": "sample string 4",
  "image": "QEA=",
  "newsChecked": true
}

application/xml, text/xml

Sample:
<News xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiGelato.Models">
  <date>2025-12-27T17:21:37.9856508+01:00</date>
  <htmlContent>sample string 4</htmlContent>
  <id>1</id>
  <image>QEA=</image>
  <newsChecked>true</newsChecked>
  <title>sample string 3</title>
</News>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.