Comment-related REST APIs

Comments can be posted to nearly any node type on the AnswerHub platform. We designed this section to guide you in creating API requests that involve comments.

Documentation Related to Comments


Note on commentIds:

  • While using the suggested request methods, remember all comments are also nodes and, in almost all cases, fields and parameters that work with nodes will also work with comments.

    • Please refer to the node section if you want to review the details relevant to these requests.
  • Remember: All concrete sub-types of node (questions, answers, or comments) share the same pool of assigned identifiers.

    • You can find a comment's commentId in the comment revisions URL after /revisions/. For example: http://localhost:8888/qa/revisions/303.html (The commentId in this example is 303).
    • You can also find a Comment ID by making a request to retrieve a list of all the comments.
    • Anywhere you need a commentId for a request, the nodeId will serve the same purpose (they are the same number).