Create 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.

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.

Table 1. Atom API request details

Method Resource URI Input representation
POST forum replies feed Value of the href attribute of the <link> element with the rel="replies" attribute value in the forum topics feed. forum reply


Provide a forum reply Atom entry document.

Note: The content type of the Atom entry document must be application/atom+xml.


An Atom entry document containing the new forum reply.

Returned HTTP headers

HTTP/1.1 201 Created

Location: url

Error codes



> POST /forums/atom/replies?topicUuid=37538e0f-6791-4fc9-9798-8f9c8206ae09 HTTP/
> Authorization: xxx
> Host:
> Accept: */*
> Content-Type: application/atom+xml
> Content-Length: 821

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="" term="forum-reply"/>
  <category scheme="" term="answer"/>
  <content type="html">Have you tried The Children's Place?</content>


< HTTP/1.1 201 Created
<?xml version="1.0" encoding="UTF-8"?><entry xmlns=""
 xmlns:app="" xmlns:snx="
/sn" xmlns:thr=""><id>
um:62812540-dce1-41cb-9dd3-504417252d56</id><title type="text">Have you tried Th
e Children's Place?</title><published>2010-09-14T23:19:29.743Z</published><updat
l><name>Amy Jones6</name><snx:userid>50730340-0101-102e-88e1-f78755f7e0ed</snx:u
serid><snx:userState>active</snx:userState></author><link href="https://lc30linu
2d56" rel="self" type="application/atom+xml"></link><link href="https://lc30linu
2d56" rel="edit" type="application/atom+xml"></link><category term="forum-reply"
 scheme=""></category><category term="answe
r" scheme=""></category><link href="https:
206ae09#62812540-dce1-41cb-9dd3-504417252d56" rel="alternate" type="text/html"><
/link><link href="
uid=62812540-dce1-41cb-9dd3-504417252d56" rel="replies" type="application/atom+x
ml" thr:count="0"></link><thr:in-reply-to ref="
791-4fc9-9798-8f9c8206ae09" href="
m/topics?forumUuid=37538e0f-6791-4fc9-9798-8f9c8206ae09" type="application/atom+
xml"></thr:in-reply-to><content type="html">
    Have you tried The Children's Place?
  </content><snx:permissions>none, create_forum, view_forum, edit_forum, del_for
um, create_post, edit_personal_post, edit_all_post, del_personal_post, del_all_p
ost, pin_topic, subscribe, lock_node, create_topictag, del_all_topictag, del_per
sonal_topictag, create_forumtag, del_all_forumtag, del_personal_forumtag, view_c
ategory, edit_personal_question, edit_all_question</snx:permissions></entry>* Co
nnection #0 to host left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):

Parent topic

Work with community forum replies

Related reference
Forum reply entry content