Retrieve a Node Revisions List

You can use this API request to retrieve a paged list of revisions made to a node.

/services/v2/node/[nodeId]/revision.json

You can use the following parameters in your retrieve a node revisions list request:

Paging and Sorting: page, pageSize, sort
Projection: include, exclude, includeOnly
Other options: wrap, v1

🚧

Permissions & Notes:

  • You must have the View revisions permission under Moderation Roles in the Advanced Editor to view other users revisions.

    • If the node revisions list you are trying to retrieve is your own, you must have the View own revisions permission under Standard Roles in the Advanced Editor.
  • With the includeOnly parameter set to id and name (/services/v2/node.json?includeOnly=id,name) to the AnswerHub REST API.

  • We added this request in version 1.6.3.

Sample Request

A GET retrieve a node revisions list request for the revisions made to a node (nodeId: 807) 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/node/807/revision.json"

Sample Response

{
    "name": "",
    "sort": "active",
    "page": 1,
    "pageSize": 15,
    "pageCount": 1,
    "listCount": 3,
    "totalCount": 3,
    "list": [
        {
            "id": 824,
            "revision": 3,
            "node": {
                "id": 807
            },
            "body": "<p>CHECK OUT THIS PAGE! Here you can learn how to enable the JIRA plugin: <a rel=\"noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer\" href=\"https://api.dzonesoftware.com/docs/jira-integration\" target=\"_blank\">JIRA DOCS</a></p>",
            "bodyAsHTML": "<p>CHECK OUT THIS PAGE! Here you can learn how to enable the JIRA plugin: <a rel=\"noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer\" href=\"https://api.dzonesoftware.com/docs/jira-integration\" target=\"_blank\">JIRA DOCS</a></p>",
            "author": {
                "id": 7,
                "username": "dzone",
                "reputation": 54
            },
            "summary": "",
            "revisionDate": 1549309796000,
            "revisionDateFormatted": "2/4/19 7:49 PM",
            "wiki": false
        },
        {
            "id": 838,
            "revision": 2,
            "node": {
                "id": 807
            },
            "body": "<p>Check out this page to learn how to enable the JIRA plugin: <a rel=\"noopener noreferrer noopener noreferrer\" href=\"https://api.dzonesoftware.com/docs/jira-integration\" target=\"_blank\">JIRA DOCS</a></p>",
            "bodyAsHTML": "<p>Check out this page to learn how to enable the JIRA plugin: <a rel=\"noopener noreferrer noopener noreferrer noopener noreferrer\" href=\"https://api.dzonesoftware.com/docs/jira-integration\" target=\"_blank\">JIRA DOCS</a></p>",
            "author": {
                "id": 7,
                "username": "dzone",
                "reputation": 54
            },
            "summary": "",
            "revisionDate": 1549309667000,
            "revisionDateFormatted": "2/4/19 7:47 PM",
            "wiki": false
        },
        {
            "id": 807,
            "revision": 1,
            "node": {
                "id": 807
            },
            "body": "<p>check out this page to learn how to enable the JIRA plugin: <a rel=\"noopener noreferrer noopener noreferrer\" href=\"https://api.dzonesoftware.com/docs/jira-integration\" target=\"_blank\">https://api.dzonesoftware.com/docs/jira-integration</a></p>",
            "bodyAsHTML": "<p>check out this page to learn how to enable the JIRA plugin: <a rel=\"noopener noreferrer noopener noreferrer noopener noreferrer\" href=\"https://api.dzonesoftware.com/docs/jira-integration\" target=\"_blank\">https://api.dzonesoftware.com/docs/jira-integration</a></p>",
            "author": {
                "id": 7,
                "username": "dzone",
                "reputation": 54
            },
            "summary": "Initial Revision",
            "revisionDate": 1547743768000,
            "revisionDateFormatted": "1/17/19 4:49 PM",
            "wiki": false
        }
    ]
}
Language
Authentication
Basic
base64
:
Click Try It! to start a request and see the response here!