POST api/news/save
Request Information
URI Parameters
None.
Body Parameters
NewsDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Header | string |
None. |
|
| NewsType | string |
None. |
|
| Content | string |
None. |
|
| ContentHeader | string |
None. |
|
| ImagePath | string |
None. |
|
| VideoPath | string |
None. |
|
| ValidFrom | date |
None. |
|
| ValidFromString | string |
None. |
|
| ValidToString | string |
None. |
|
| ValidTo | date |
None. |
|
| UpdatedDate | string |
None. |
|
| UpdatedBy | string |
None. |
|
| Status | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Header": "sample string 2",
"NewsType": "sample string 3",
"Content": "sample string 4",
"ContentHeader": "sample string 5",
"ImagePath": "sample string 6",
"VideoPath": "sample string 7",
"ValidFrom": "2026-01-26T10:48:01.8351171+00:00",
"ValidFromString": "sample string 8",
"ValidToString": "sample string 9",
"ValidTo": "2026-01-26T10:48:01.8451339+00:00",
"UpdatedDate": "sample string 10",
"UpdatedBy": "sample string 11",
"Status": true
}
application/xml, text/xml
Sample:
<NewsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO.Master"> <Content>sample string 4</Content> <ContentHeader>sample string 5</ContentHeader> <Header>sample string 2</Header> <Id>1</Id> <ImagePath>sample string 6</ImagePath> <NewsType>sample string 3</NewsType> <Status>true</Status> <UpdatedBy>sample string 11</UpdatedBy> <UpdatedDate>sample string 10</UpdatedDate> <ValidFrom>2026-01-26T10:48:01.8351171+00:00</ValidFrom> <ValidFromString>sample string 8</ValidFromString> <ValidTo>2026-01-26T10:48:01.8451339+00:00</ValidTo> <ValidToString>sample string 9</ValidToString> <VideoPath>sample string 7</VideoPath> </NewsDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>