POST classroomAPI/PD/addNewsItem

Request Information

URI Parameters

None.

Body Parameters

NewsItem
NameDescriptionTypeAdditional information
NIIDPK

globally unique identifier

None.

CreatedByFK

integer

None.

Title

string

None.

SubTitle

string

None.

ImageFK

globally unique identifier

None.

HeaderImageFK

globally unique identifier

None.

NewsType

integer

None.

ArticleText

string

None.

CreatedDate

date

None.

PublishDate

date

None.

ExpireDate

date

None.

ImageURL

string

None.

HeaderImageURL

string

None.

BoardID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "NIIDPK": "3c9b69a7-dd06-47e0-9bdb-7003e69877b0",
  "CreatedByFK": 2,
  "Title": "sample string 3",
  "SubTitle": "sample string 4",
  "ImageFK": "22d60401-b148-4cd1-9ece-c3dbd9fc54e0",
  "HeaderImageFK": "d12d7d4b-068f-4739-94b8-f00314d031a7",
  "NewsType": 5,
  "ArticleText": "sample string 6",
  "CreatedDate": "2024-11-25T04:01:23.2823754-05:00",
  "PublishDate": "2024-11-25T04:01:23.2823754-05:00",
  "ExpireDate": "2024-11-25T04:01:23.2823754-05:00",
  "ImageURL": "sample string 9",
  "HeaderImageURL": "sample string 10",
  "BoardID": "695d14d8-ef69-4a6b-abed-432d73d886c4"
}

application/xml, text/xml

Sample:
<NewsItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Classroom.ClassroomBLL.Coaching">
  <ArticleText>sample string 6</ArticleText>
  <BoardID>695d14d8-ef69-4a6b-abed-432d73d886c4</BoardID>
  <CreatedByFK>2</CreatedByFK>
  <CreatedDate>2024-11-25T04:01:23.2823754-05:00</CreatedDate>
  <ExpireDate>2024-11-25T04:01:23.2823754-05:00</ExpireDate>
  <HeaderImageFK>d12d7d4b-068f-4739-94b8-f00314d031a7</HeaderImageFK>
  <HeaderImageURL>sample string 10</HeaderImageURL>
  <ImageFK>22d60401-b148-4cd1-9ece-c3dbd9fc54e0</ImageFK>
  <ImageURL>sample string 9</ImageURL>
  <NIIDPK>3c9b69a7-dd06-47e0-9bdb-7003e69877b0</NIIDPK>
  <NewsType>5</NewsType>
  <PublishDate>2024-11-25T04:01:23.2823754-05:00</PublishDate>
  <SubTitle>sample string 4</SubTitle>
  <Title>sample string 3</Title>
</NewsItem>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

NewsItem
NameDescriptionTypeAdditional information
NIIDPK

globally unique identifier

None.

CreatedByFK

integer

None.

Title

string

None.

SubTitle

string

None.

ImageFK

globally unique identifier

None.

HeaderImageFK

globally unique identifier

None.

NewsType

integer

None.

ArticleText

string

None.

CreatedDate

date

None.

PublishDate

date

None.

ExpireDate

date

None.

ImageURL

string

None.

HeaderImageURL

string

None.

BoardID

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "NIIDPK": "16dd664d-5173-4731-b385-9306fd4f8c37",
  "CreatedByFK": 2,
  "Title": "sample string 3",
  "SubTitle": "sample string 4",
  "ImageFK": "0b98398b-75d6-46ec-af6a-c17cccde83af",
  "HeaderImageFK": "875368be-ec57-41f8-8f90-fccdc9ae2a35",
  "NewsType": 5,
  "ArticleText": "sample string 6",
  "CreatedDate": "2024-11-25T04:01:23.3136453-05:00",
  "PublishDate": "2024-11-25T04:01:23.3136453-05:00",
  "ExpireDate": "2024-11-25T04:01:23.3136453-05:00",
  "ImageURL": "sample string 9",
  "HeaderImageURL": "sample string 10",
  "BoardID": "2c7416cb-b8ae-41fd-bd5b-8f6368e80e89"
}

application/xml, text/xml

Sample:
<NewsItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Classroom.ClassroomBLL.Coaching">
  <ArticleText>sample string 6</ArticleText>
  <BoardID>2c7416cb-b8ae-41fd-bd5b-8f6368e80e89</BoardID>
  <CreatedByFK>2</CreatedByFK>
  <CreatedDate>2024-11-25T04:01:23.3136453-05:00</CreatedDate>
  <ExpireDate>2024-11-25T04:01:23.3136453-05:00</ExpireDate>
  <HeaderImageFK>875368be-ec57-41f8-8f90-fccdc9ae2a35</HeaderImageFK>
  <HeaderImageURL>sample string 10</HeaderImageURL>
  <ImageFK>0b98398b-75d6-46ec-af6a-c17cccde83af</ImageFK>
  <ImageURL>sample string 9</ImageURL>
  <NIIDPK>16dd664d-5173-4731-b385-9306fd4f8c37</NIIDPK>
  <NewsType>5</NewsType>
  <PublishDate>2024-11-25T04:01:23.3136453-05:00</PublishDate>
  <SubTitle>sample string 4</SubTitle>
  <Title>sample string 3</Title>
</NewsItem>