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.
See Authenticating requests
for information about how to authenticate the request.
To create a community forum reply, complete these steps:
1. Retrieve the service document to discover the web address of the My Communities feed.
2. Retrieve the My Communities feed, and then find the community to which you want to add the topic reply. Make a note of the web address in the href attribute of the rel="edit" <link> element.
3. Send a GET request to the web address you noted in the previous step to retrieve the Atom entry document for the community. Look for the entry that represents the topic you want to reply to. Make a note of the web address of the rel="replies" <link> element.
4. Send a POST request to the web address you noted in the previous step. Pass in to the request an Atom entry document that represents the reply you want to post.
Provide a forum reply Atom entry document.
The content type of the Atom entry document must be application/atom+xml
To create a reply with an attachment, use a multipart post in the request. See Creating a stand-alone forum topic programmatically
for more details.
An Atom entry document containing the new forum reply.
Entry document provided as input:
<?xml version="1.0" encoding="UTF-8"?>
<title type="text">Have you tried The Children's Place?</title>
<category scheme="http://www.ibm.com/xmlns/prod/sn/type" term="forum-reply"/>
<category scheme="http://www.ibm.com/xmlns/prod/sn/flags" term="answer"/>
<content type="html">Have you tried The Children's Place?</content>