Retrieve a List of Revisions Made to a Comment

You can use this request to search for and return a paged list of revisions made to a specific comment.

/services/v2/comment/[commentId]/revision.json

You can use the following parameters in your retrieve a list of revisions made to a comment request:

Other options: wrap, v1

🚧

Permissions & Notes:

  • You must have the View revisions permission under Moderation Roles in the Advanced Editor.

    • If the comment is your own, you must have the View own revisions permission under Standard Roles in the Advanced Editor.
  • We added this request in version 1.6.3.

Sample Request

TO RETRIEVE COMMENT ID: First you will want to make a GET request to Retrieve the Comments List, then select the appropriate ID to see the revisions made to that comment.

A GET get a list of revisions made to a comment request to get a list of revisions posted to an answer (commentId: 847) sent to https://apidocs.cloud.answerhub.com using a human-readable Username/Password (answerhub/test123) would look like this:

curl 
-u answerhub:test123 
-H "Accept: application/json" 
-H "Content-type: application/json" 
-X GET "https://apidocs.cloud.answerhub.com/services/v2/comment/847/revision.json" -v

Sample Response

{
  "name": "",
  "sort": "active",
  "page": 1,
  "pageSize": 15,
  "pageCount": 1,
  "listCount": 2,
  "totalCount": 2,
  "list": [
    {
      "id": 5954,
      "revision": 2,
      "node": {
        "id": 4478
      },
      "body": "Test Comment 1. This is revision 1.\n",
      "bodyAsHTML": "<p>Test Comment 1. This is revision 1.<br></p>\n",
      "author": {
        "id": 2531,
        "username": "testUser",
        "reputation": 150
      },
      "summary": "",
      "revisionDate": 1473427228000,
      "revisionDateFormatted": "9/9/16 1:20 PM",
      "wiki": false
    },
    {
      "id": 5879,
      "revision": 1,
      "node": {
        "id": 4478
      },
      "body": "Test Comment 1\n",
      "bodyAsHTML": "<p>Test Comment 1<br></p>\n",
      "author": {
        "id": 2531,
        "username": "testUser",
        "reputation": 150
      },
      "summary": "Initial Revision",
      "revisionDate": 1472849845000,
      "revisionDateFormatted": "9/2/16 8:57 PM",
      "wiki": false
    }
  ]
}
Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!