Community articleWorking with community forum replies
Added by IBM contributorIBM on December 21, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Using the Atom Publishing Protocol, also known as AtomPub, you can create or update replies to forum topics in communities.
Tags: commapi



Using the Atom Publishing Protocol, also known as AtomPub, you can create or update replies to forum topics in communities.

With version 3, a stand-alone Forums application was introduced. It has a full set of APIs for working with forum replies. Refer to Forums API for more details.
Creating a community forum reply programmatically
To post a reply to a topic in a community forum, send an Atom entry document containing the forum reply to the forum replies resource.

Retrieving a community forum reply programmatically
To retrieve complete information about a reply to a topic in a community forum, use the edit link found in the forum reply entry in the forum replies feed.

Updating a community forum reply programmatically
To update a reply to a topic in a community forum, send an updated forum reply document in Atom format to the existing reply's edit web address.

Deleting a community forum reply programmatically
Because replies often have child replies associated with them, when you delete a reply from a forum, the reply is not entirely removed. Instead, if you use the HTTP DELETE command to delete the reply, the reply content is replaced with a standard message that states that the content has been removed. If you want a custom message to be displayed, use the HTTP PUT command instead.