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": "ef993add-cf85-4f2a-874c-91ed71e64d71", "CreatedByFK": 2, "Title": "sample string 3", "SubTitle": "sample string 4", "ImageFK": "c1440dd7-d1ae-44af-a3eb-9fc4ac678c67", "HeaderImageFK": "7d0ea0f7-060a-437a-8bfe-0190c7433fac", "NewsType": 5, "ArticleText": "sample string 6", "CreatedDate": "2025-04-03T18:06:51.8195331-04:00", "PublishDate": "2025-04-03T18:06:51.8195331-04:00", "ExpireDate": "2025-04-03T18:06:51.8195331-04:00", "ImageURL": "sample string 9", "HeaderImageURL": "sample string 10", "BoardID": "77e4bc1f-b27f-46b4-9fdc-8cc5e2bba2f4" }
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>77e4bc1f-b27f-46b4-9fdc-8cc5e2bba2f4</BoardID> <CreatedByFK>2</CreatedByFK> <CreatedDate>2025-04-03T18:06:51.8195331-04:00</CreatedDate> <ExpireDate>2025-04-03T18:06:51.8195331-04:00</ExpireDate> <HeaderImageFK>7d0ea0f7-060a-437a-8bfe-0190c7433fac</HeaderImageFK> <HeaderImageURL>sample string 10</HeaderImageURL> <ImageFK>c1440dd7-d1ae-44af-a3eb-9fc4ac678c67</ImageFK> <ImageURL>sample string 9</ImageURL> <NIIDPK>ef993add-cf85-4f2a-874c-91ed71e64d71</NIIDPK> <NewsType>5</NewsType> <PublishDate>2025-04-03T18:06:51.8195331-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": "927ebdee-f193-49c4-9c36-36c7dee045f9", "CreatedByFK": 2, "Title": "sample string 3", "SubTitle": "sample string 4", "ImageFK": "d4e175c4-abff-4dda-a6bc-4dc293a3d515", "HeaderImageFK": "4c7ac7ed-3b9e-419e-a053-382935f5d0bc", "NewsType": 5, "ArticleText": "sample string 6", "CreatedDate": "2025-04-03T18:06:51.8195331-04:00", "PublishDate": "2025-04-03T18:06:51.8195331-04:00", "ExpireDate": "2025-04-03T18:06:51.8195331-04:00", "ImageURL": "sample string 9", "HeaderImageURL": "sample string 10", "BoardID": "abb8605d-6207-4d58-8b90-f40f97072a03" }
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>abb8605d-6207-4d58-8b90-f40f97072a03</BoardID> <CreatedByFK>2</CreatedByFK> <CreatedDate>2025-04-03T18:06:51.8195331-04:00</CreatedDate> <ExpireDate>2025-04-03T18:06:51.8195331-04:00</ExpireDate> <HeaderImageFK>4c7ac7ed-3b9e-419e-a053-382935f5d0bc</HeaderImageFK> <HeaderImageURL>sample string 10</HeaderImageURL> <ImageFK>d4e175c4-abff-4dda-a6bc-4dc293a3d515</ImageFK> <ImageURL>sample string 9</ImageURL> <NIIDPK>927ebdee-f193-49c4-9c36-36c7dee045f9</NIIDPK> <NewsType>5</NewsType> <PublishDate>2025-04-03T18:06:51.8195331-04:00</PublishDate> <SubTitle>sample string 4</SubTitle> <Title>sample string 3</Title> </NewsItem>