POST api/news/saveNews
Request Information
URI Parameters
None.
Body Parameters
NewsName | Description | Type | Additional information |
---|---|---|---|
NewsID | integer |
None. |
|
CompanyID | integer |
None. |
|
Subject | string |
None. |
|
Description | string |
None. |
|
ImageURL | string |
None. |
|
CreatedBy | integer |
None. |
|
CreatedOn | date |
None. |
|
ModifiedBy | integer |
None. |
|
ModifiedOn | date |
None. |
|
IsDeleted | boolean |
None. |
|
SortOrder | integer |
None. |
|
IsActive | boolean |
None. |
|
HeaderURL | string |
None. |
|
NewsGallery | Collection of Gallery |
None. |
Request Formats
application/json, text/json
Sample:
{ "NewsID": 1, "CompanyID": 1, "Subject": "sample string 1", "Description": "sample string 2", "ImageURL": "sample string 3", "CreatedBy": 1, "CreatedOn": "2024-11-21T12:59:24.286921+03:00", "ModifiedBy": 1, "ModifiedOn": "2024-11-21T12:59:24.286921+03:00", "IsDeleted": true, "SortOrder": 1, "IsActive": true, "HeaderURL": "sample string 4", "NewsGallery": [ { "GalleryID": 1, "CompanyID": 1, "GalleryURL": "sample string 1", "NewsID": 1, "TypeID": 1, "IsDeleted": true, "CreatedBy": 1, "CreatedOn": "2024-11-21T12:59:24.286921+03:00", "ModifiedBy": 1, "ModifiedOn": "2024-11-21T12:59:24.286921+03:00", "OriginalName": "sample string 2", "EncryptedName": "sample string 3", "IsSelected": true }, { "GalleryID": 1, "CompanyID": 1, "GalleryURL": "sample string 1", "NewsID": 1, "TypeID": 1, "IsDeleted": true, "CreatedBy": 1, "CreatedOn": "2024-11-21T12:59:24.286921+03:00", "ModifiedBy": 1, "ModifiedOn": "2024-11-21T12:59:24.286921+03:00", "OriginalName": "sample string 2", "EncryptedName": "sample string 3", "IsSelected": true } ] }
application/xml, text/xml
Sample:
<News xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MODEL.Models"> <CompanyID>1</CompanyID> <CreatedBy>1</CreatedBy> <CreatedOn>2024-11-21T12:59:24.286921+03:00</CreatedOn> <Description>sample string 2</Description> <HeaderURL>sample string 4</HeaderURL> <ImageURL>sample string 3</ImageURL> <IsActive>true</IsActive> <IsDeleted>true</IsDeleted> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2024-11-21T12:59:24.286921+03:00</ModifiedOn> <NewsGallery> <Gallery> <CompanyID>1</CompanyID> <CreatedBy>1</CreatedBy> <CreatedOn>2024-11-21T12:59:24.286921+03:00</CreatedOn> <EncryptedName>sample string 3</EncryptedName> <GalleryID>1</GalleryID> <GalleryURL>sample string 1</GalleryURL> <IsDeleted>true</IsDeleted> <IsSelected>true</IsSelected> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2024-11-21T12:59:24.286921+03:00</ModifiedOn> <NewsID>1</NewsID> <OriginalName>sample string 2</OriginalName> <TypeID>1</TypeID> </Gallery> <Gallery> <CompanyID>1</CompanyID> <CreatedBy>1</CreatedBy> <CreatedOn>2024-11-21T12:59:24.286921+03:00</CreatedOn> <EncryptedName>sample string 3</EncryptedName> <GalleryID>1</GalleryID> <GalleryURL>sample string 1</GalleryURL> <IsDeleted>true</IsDeleted> <IsSelected>true</IsSelected> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2024-11-21T12:59:24.286921+03:00</ModifiedOn> <NewsID>1</NewsID> <OriginalName>sample string 2</OriginalName> <TypeID>1</TypeID> </Gallery> </NewsGallery> <NewsID>1</NewsID> <SortOrder>1</SortOrder> <Subject>sample string 1</Subject> </News>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.