POST api/News/AddUpdateNews
Request Information
URI Parameters
None.
Body Parameters
NewsDataBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Title | string |
None. |
|
| Description | string |
None. |
|
| Date | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Title": "sample string 2",
"Description": "sample string 3",
"Date": "2026-01-10T13:08:17.6619222+05:30"
}
application/xml, text/xml
Sample:
<NewsDataBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infovores.Models"> <Date>2026-01-10T13:08:17.6619222+05:30</Date> <Description>sample string 3</Description> <Id>1</Id> <Title>sample string 2</Title> </NewsDataBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Response | boolean |
None. |
|
| ReturnCode | integer |
None. |
|
| Message | string |
None. |
|
| Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Response": true,
"ReturnCode": 2,
"Message": "sample string 3",
"Result": {}
}
application/xml, text/xml
Sample:
<ApiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infovores.Models"> <Message>sample string 3</Message> <Response>true</Response> <Result /> <ReturnCode>2</ReturnCode> </ApiResult>