Community articleAdding a comment to a wiki page
Added by IBM contributorIBM on January 5, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Adding a comment programatically
Input
Method URI Description
POST /wikis/basic/api/wiki/{wiki-id}/page/{page-id}/feed {page-id} is the id of the wiki page to which comment needs to be added.
{wiki-id} is the id of the wiki in which a page with {page-id} exists
Content Type: application/atom+xml
Sample Request:
<entry xmlns="http://www.w3.org/2005/Atom"><category term="comment" scheme="tag:ibm.com,2006:td/type" label="comment"></category><content type="html">testcomment</content>
</entry> 
Output
Code Description
200
OK. Indicates that the request was received successfully.
401
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.
404
The URL could not be found.