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
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=""><category term="comment" scheme=",2006:td/type" label="comment"></category><content type="html">testcomment</content>
Code Description
OK. Indicates that the request was received successfully.
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.
The URL could not be found.