Search code examples
apiibm-connectionsibm-sbt

Add Forum programmatically to IBM Connections Community


I am trying to add a forum topic and then forum entry to a community. Following the IBM API documentation, I am posting the Atom entry to this URL:/communities/service/atom/community/forum/topics?communityUuid=

The Atom entry I use as the following format (the example coming from the API documentation): <?xml version="1.0" encoding="UTF-8"?> <entry xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:snx="http://www.ibm.com/xmlns/prod/sn"> <category scheme="http://www.ibm.com/xmlns/prod/sn/type" term="forum-topic"/> <title type="text">TEXT OF TOPIC</title> </entry>

Each time I get a 200 answer. I tried with the playground, same result.

Do you know if the URL I am using is correct? Do you know if the Atom entry document is correct?


Solution

  • ok, was able to find the solution with help from @paul.

    The URL you need to post the Atom document is: /forums/atom/topics?communityUuid=

    The Atom document should look like this: <?xml version="1.0" encoding="UTF-8"?> <entry xmlns="http://www.w3.org/2005/Atom" xmlns:snx="http://www.ibm.com/xmlns/prod/sn"> <title type="text">Test</title> <category term="forum-topic" scheme="http://www.ibm.com/xmlns/prod/sn/type"> </category> <content type="text"> test </content> <snx:communityUuid xmlns:snx="http://www.ibm.com/xmlns/prod/sn">19aa4e90-9307-46f1-9b69-5a8965e8ed61</snx:communityUuid> </entry>