Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

discussions-KMGetCommunityPostByCategory

Updated on September 14, 2021

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

NameTypeDescription
CategoryIDstringThe Category ID for which posts should be retrieved.
CommunityNamestringThe 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"
        }
    ]
}

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us