POST api/News
Request Information
URI Parameters
None.
Body Parameters
NewsItemEntryDTOName | Description | Type | Additional information |
---|---|---|---|
ThumbnailImageId | integer |
None. |
|
Body | string |
None. |
|
ContentDescription | string |
None. |
|
IsPublished | boolean |
None. |
|
NestRemoteContent | boolean |
None. |
|
PublicationDateUTC | string |
None. |
|
RemoteLink | string |
None. |
|
Title | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ThumbnailImageId": 1, "Body": "sample string 1", "ContentDescription": "sample string 2", "IsPublished": true, "NestRemoteContent": true, "PublicationDateUTC": "sample string 5", "RemoteLink": "sample string 6", "Title": "sample string 7" }
application/xml, text/xml
Sample:
<NewsItemEntryDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bulletin.Model.DTO"> <Body>sample string 1</Body> <ContentDescription>sample string 2</ContentDescription> <IsPublished>true</IsPublished> <NestRemoteContent>true</NestRemoteContent> <PublicationDateUTC>sample string 5</PublicationDateUTC> <RemoteLink>sample string 6</RemoteLink> <Title>sample string 7</Title> <ThumbnailImageId>1</ThumbnailImageId> </NewsItemEntryDTO>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |