POST classroomAPI/PD/addNewsItem
Request Information
URI Parameters
None.
Body Parameters
NewsItemName | Description | Type | Additional 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": "23aeb943-e5f8-4224-8999-ae4b486ed5da", "CreatedByFK": 2, "Title": "sample string 3", "SubTitle": "sample string 4", "ImageFK": "b37bee09-a959-4cc8-92dc-79f9c3c94384", "HeaderImageFK": "00160dfe-a906-48ab-ad05-b2132332c937", "NewsType": 5, "ArticleText": "sample string 6", "CreatedDate": "2025-04-03T19:28:20.5798426-04:00", "PublishDate": "2025-04-03T19:28:20.5798426-04:00", "ExpireDate": "2025-04-03T19:28:20.5798426-04:00", "ImageURL": "sample string 9", "HeaderImageURL": "sample string 10", "BoardID": "53bacd0c-57a6-43ea-ae01-9a5df75b8c5f" }
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>53bacd0c-57a6-43ea-ae01-9a5df75b8c5f</BoardID> <CreatedByFK>2</CreatedByFK> <CreatedDate>2025-04-03T19:28:20.5798426-04:00</CreatedDate> <ExpireDate>2025-04-03T19:28:20.5798426-04:00</ExpireDate> <HeaderImageFK>00160dfe-a906-48ab-ad05-b2132332c937</HeaderImageFK> <HeaderImageURL>sample string 10</HeaderImageURL> <ImageFK>b37bee09-a959-4cc8-92dc-79f9c3c94384</ImageFK> <ImageURL>sample string 9</ImageURL> <NIIDPK>23aeb943-e5f8-4224-8999-ae4b486ed5da</NIIDPK> <NewsType>5</NewsType> <PublishDate>2025-04-03T19:28:20.5798426-04: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
NewsItemName | Description | Type | Additional 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": "fe14ff68-91c1-486f-b717-1db4bcb7b982", "CreatedByFK": 2, "Title": "sample string 3", "SubTitle": "sample string 4", "ImageFK": "cb13ee9e-3f87-46b9-8566-da57498cae11", "HeaderImageFK": "a169e73a-f47f-449e-b44c-8e6ae1c9f465", "NewsType": 5, "ArticleText": "sample string 6", "CreatedDate": "2025-04-03T19:28:20.5808496-04:00", "PublishDate": "2025-04-03T19:28:20.5818452-04:00", "ExpireDate": "2025-04-03T19:28:20.5818452-04:00", "ImageURL": "sample string 9", "HeaderImageURL": "sample string 10", "BoardID": "12409e7f-dffe-426a-ae5f-851a183d9ac7" }
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>12409e7f-dffe-426a-ae5f-851a183d9ac7</BoardID> <CreatedByFK>2</CreatedByFK> <CreatedDate>2025-04-03T19:28:20.5808496-04:00</CreatedDate> <ExpireDate>2025-04-03T19:28:20.5818452-04:00</ExpireDate> <HeaderImageFK>a169e73a-f47f-449e-b44c-8e6ae1c9f465</HeaderImageFK> <HeaderImageURL>sample string 10</HeaderImageURL> <ImageFK>cb13ee9e-3f87-46b9-8566-da57498cae11</ImageFK> <ImageURL>sample string 9</ImageURL> <NIIDPK>fe14ff68-91c1-486f-b717-1db4bcb7b982</NIIDPK> <NewsType>5</NewsType> <PublishDate>2025-04-03T19:28:20.5818452-04:00</PublishDate> <SubTitle>sample string 4</SubTitle> <Title>sample string 3</Title> </NewsItem>