POST api/News/Post

Request Information

URI Parameters

None.

Body Parameters

LiteNewsItem
NameDescriptionTypeAdditional information
CreatedBy

string

None.

CreatedDate

date

None.

Id

integer

None.

Message

string

Required

NotificationDate

date

None.

SendToFoundation

boolean

None.

SendToYear0

boolean

None.

SendToYear01

boolean

None.

SendToYear02

boolean

None.

SendToYear03

boolean

None.

SendToYear04

boolean

None.

SendToYear05

boolean

None.

SendToYear06

boolean

None.

SendToYear07

boolean

None.

SendToYear08

boolean

None.

SendToYear09

boolean

None.

SendToYear10

boolean

None.

SendToYear11

boolean

None.

SendToYear12

boolean

None.

SendToYear13

boolean

None.

Sent

boolean

None.

UpdatedBy

string

None.

UpdatedByName

string

None.

UpdatedDate

date

None.

SchoolId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CreatedBy": "sample string 1",
  "CreatedDate": "2019-12-09T16:06:45.6362097+00:00",
  "Id": 3,
  "Message": "sample string 4",
  "NotificationDate": "2019-12-09T16:06:45.6362097+00:00",
  "SendToFoundation": true,
  "SendToYear0": true,
  "SendToYear01": true,
  "SendToYear02": true,
  "SendToYear03": true,
  "SendToYear04": true,
  "SendToYear05": true,
  "SendToYear06": true,
  "SendToYear07": true,
  "SendToYear08": true,
  "SendToYear09": true,
  "SendToYear10": true,
  "SendToYear11": true,
  "SendToYear12": true,
  "SendToYear13": true,
  "Sent": true,
  "UpdatedBy": "sample string 21",
  "UpdatedByName": "sample string 22",
  "UpdatedDate": "2019-12-09T16:06:45.6362097+00:00",
  "SchoolId": 1
}

application/xml, text/xml

Sample:
<LiteNewsItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models.Hub.Api">
  <CreatedBy>sample string 1</CreatedBy>
  <CreatedDate>2019-12-09T16:06:45.6362097+00:00</CreatedDate>
  <Id>3</Id>
  <Message>sample string 4</Message>
  <NotificationDate>2019-12-09T16:06:45.6362097+00:00</NotificationDate>
  <SchoolId>1</SchoolId>
  <SendToFoundation>true</SendToFoundation>
  <SendToYear0>true</SendToYear0>
  <SendToYear01>true</SendToYear01>
  <SendToYear02>true</SendToYear02>
  <SendToYear03>true</SendToYear03>
  <SendToYear04>true</SendToYear04>
  <SendToYear05>true</SendToYear05>
  <SendToYear06>true</SendToYear06>
  <SendToYear07>true</SendToYear07>
  <SendToYear08>true</SendToYear08>
  <SendToYear09>true</SendToYear09>
  <SendToYear10>true</SendToYear10>
  <SendToYear11>true</SendToYear11>
  <SendToYear12>true</SendToYear12>
  <SendToYear13>true</SendToYear13>
  <Sent>true</Sent>
  <UpdatedBy>sample string 21</UpdatedBy>
  <UpdatedByName>sample string 22</UpdatedByName>
  <UpdatedDate>2019-12-09T16:06:45.6362097+00:00</UpdatedDate>
</LiteNewsItem>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.