PUT api/News/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
News| Name | Description | Type | Additional 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:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.