discussions-KMGetCommunityPostByCategory
Gets the posts related to a specified category ID and community name.
Pega Knowledge
Implementation Guide
Method: GET
Sample endpoint URL
https://<DomainName>/prweb/api/PegaKMREST/discussions/KMGetCommunityPostsByCategory
Query parameters
Name | Type | Description |
CategoryID | string | The Category ID for which posts should be retrieved. |
CommunityName | string | The Community name. |
Response syntax
{ "posts": [ { "CategoryID": "", "CategoryLabel": "", "CreateDateTime": "", "CreateOperator": "", "Description": "", "PostID": "", "PostTitle": "" } ] }
Sample response
{
"posts": [
{
"CategoryID": "TAX-9",
"CategoryLabel": "General Q & A",
"CreateDateTime": "20180412T154204.644 GMT",
"CreateOperator": "Moderator",
"Description": " <p> We have implementeda profantity filter on this site. I'd like to know what people think about that. The intent is to help keep this site a safe place for open collaboration and avoid explicit or profane words (which we would mask out using aster+",
"PostID": "C-15",
"PostTitle": "Profanity filtering in this community"
},
{
"CategoryID": "TAX-9",
"CategoryLabel": "General Q & A",
"CreateDateTime": "20180412T152307.003 GMT",
"CreateOperator": "Rebecca Biggs",
"Description": " <p> <span style=\"font-size:14px;\"> <span style=\"color: rgb(0, 0, 0); font-family: OpenSans, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-ind+",
"PostID": "C-14",
"PostTitle": "East Coast Colleges"
}
]
}
Previous topic discussions-KMGetCommunityPostByID Next topic discussions-KMGetUserCommunityPost