Query User's Content

/services/v2/users/gdpr/[user-id]/content.json

- URL Params
No params needed; the user ID is already a path param.

- Data Params
No data params

🚧

For Permissions, Requirements, and More Detailed Information:

Reference the GDPR Plugin Docs in the Non-Reference portion of the documentation.

Sample Request

A GET Query User's Content request for content for a user named admin(userId:108) 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/users/gdpr/108/content.json"

Expected Responses

- Success Response:
Code:200
Content:[{"actionType":<action_type>,"canceled":,"actionDate":,"content":{"id":
<node_id>,"title":<node_title>,"type":<node_type>,"accepted":}}]

- Error Response:
Code:422 UNPROCESSABLE ENTRY
Content:{ error : "Invalid User Id" }

Sample Response

[
    {
        "actionType": "answered",
        "canceled": false,
        "actionDate": "2019-02-21 15:47:40.0",
        "node": {
            "id": 873,
            "title": null,
            "body": "<div class=\"fr-view clearfix\"><p>You should go to the <a rel=\"noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer\" href=\"https://api.dzonesoftware.com/\" target=\"_blank\">api.dzonesoftware.com</a> page and look for expertise under community user guide &gt; AnswerHub Content.<img src=\"/storage/attachments/3-user-interface-expertise-doc-screenshot-2019-02-21.png\" class=\"fr-fil fr-dib\" /></p></div>",
            "type": "answer",
            "accepted": false
        }
    },
    {
        "actionType": "commented",
        "canceled": false,
        "actionDate": "2019-02-18 19:07:47.0",
        "node": {
            "id": 858,
            "title": null,
            "body": "<div class=\"fr-view clearfix\">Body of your comment as a response to an idea</div>",
            "type": "ideacomment",
            "accepted": false
        }
    },
    {
        "actionType": "suggested",
        "canceled": false,
        "actionDate": "2019-02-18 15:14:43.0",
        "node": {
            "id": 853,
            "title": "Idea by REST API 102",
            "body": "<div class=\"fr-view clearfix\">Body of the idea goes here</div>",
            "type": "idea",
            "accepted": false
        }
    },
    {
        "actionType": "edited",
        "canceled": false,
        "actionDate": "2019-02-12 21:49:11.0",
        "node": {
            "id": 852,
            "title": "Testing Edit Article Via the API",
            "body": "<div class=\"fr-view clearfix\">editing a child article</div>",
            "type": "kbentry",
            "accepted": false
        }
    },
    {
        "actionType": "labeled",
        "canceled": false,
        "actionDate": "2019-02-12 20:26:35.0",
        "node": {
            "id": 849,
            "title": "testingkb",
            "body": "",
            "type": "topic",
            "accepted": false
        }
    },
    {
        "actionType": "posted",
        "canceled": false,
        "actionDate": "2019-02-12 20:26:35.0",
        "node": {
            "id": 850,
            "title": "Article posted from the API",
            "body": "<div class=\"fr-view clearfix\">This is the body of an article posted through the API</div>",
            "type": "kbentry",
            "accepted": false
        }
    },
    {
        "actionType": "labeled",
        "canceled": false,
        "actionDate": "2019-02-11 15:12:56.0",
        "node": {
            "id": 834,
            "title": "helpme",
            "body": "",
            "type": "topic",
            "accepted": false
        }
    },
    {
        "actionType": "asked",
        "canceled": false,
        "actionDate": "2019-02-11 15:12:56.0",
        "node": {
            "id": 835,
            "title": "How do I know if my question is a good question?",
            "body": "<div class=\"fr-view clearfix\">Please help me figure this out.</div>",
            "type": "question",
            "accepted": false
        }
    },
    {
        "actionType": "commented",
        "canceled": false,
        "actionDate": "2019-02-08 19:18:02.0",
        "node": {
            "id": 846,
            "title": null,
            "body": "<div class=\"fr-view clearfix\">Customer Success should be able to answer your question.</div>",
            "type": "comment",
            "accepted": false
        }
    },
    {
        "actionType": "answered",
        "canceled": false,
        "actionDate": "2019-02-08 15:56:10.0",
        "node": {
            "id": 833,
            "title": null,
            "body": "<div class=\"fr-view clearfix\">AnswerHub is a developer engagement and community platform. By combining our core set of features and plugin options, you can create a custom, world-class developer ecosystem.</div>",
            "type": "answer",
            "accepted": false
        }
    },
    {
        "actionType": "moved",
        "canceled": false,
        "actionDate": "2019-02-08 15:08:12.0",
        "node": {
            "id": 842,
            "title": "Can I cancel my own question?",
            "body": "<div class=\"fr-view clearfix\"><p>There is a permission to control this.</p></div>",
            "type": "question",
            "accepted": false
        }
    },
    {
        "actionType": "closed",
        "canceled": false,
        "actionDate": "2019-02-07 15:05:50.0",
        "node": {
            "id": 832,
            "title": "I don't know what I am doing. Can someone help?",
            "body": "<div class=\"fr-view clearfix\"><p>TESTING DELETE NODE API</p></div>",
            "type": "question",
            "accepted": false
        }
    },
    {
        "actionType": "reported",
        "canceled": false,
        "actionDate": "2019-02-05 15:30:36.0",
        "node": {
            "id": 828,
            "title": "Article Created to be Reported via API",
            "body": "<div class=\"fr-view clearfix\"><h2>Why do we use it?</h2><p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using &#39;Content here, content here&#39;, making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for &#39;lorem ipsum&#39; will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p></div>",
            "type": "kbentry",
            "accepted": false
        }
    },
    {
        "actionType": "commented",
        "canceled": false,
        "actionDate": "2019-02-04 22:32:04.0",
        "node": {
            "id": 827,
            "title": null,
            "body": "<div class=\"fr-view clearfix\">Testing API. Node comment text goes here.</div>",
            "type": "comment",
            "accepted": false
        }
    },
    {
        "actionType": "gave a bonus to",
        "canceled": false,
        "actionDate": "2019-02-04 15:22:58.0"
    },
    {
        "actionType": "gave a bonus to",
        "canceled": false,
        "actionDate": "2019-02-04 15:18:59.0"
    },
    {
        "actionType": "commented",
        "canceled": false,
        "actionDate": "2019-01-25 14:08:11.0",
        "node": {
            "id": 822,
            "title": null,
            "body": "<div class=\"fr-view clearfix\">Your reply is a reply!</div>",
            "type": "ideacomment",
            "accepted": false
        }
    },
    {
        "actionType": "labeled",
        "canceled": false,
        "actionDate": "2019-01-24 16:19:11.0",
        "node": {
            "id": 810,
            "title": "testidea",
            "body": "",
            "type": "topic",
            "accepted": false
        }
    },
    {
        "actionType": "suggested",
        "canceled": false,
        "actionDate": "2019-01-24 16:19:11.0",
        "node": {
            "id": 821,
            "title": "Idea by REST API 101",
            "body": "<div class=\"fr-view clearfix\">Body of the idea</div>",
            "type": "idea",
            "accepted": false
        }
    },
    {
        "actionType": "labeled",
        "canceled": false,
        "actionDate": "2019-01-24 13:24:53.0",
        "node": {
            "id": 817,
            "title": "idea1",
            "body": "",
            "type": "topic",
            "accepted": false
        }
    },
    {
        "actionType": "labeled",
        "canceled": false,
        "actionDate": "2019-01-24 13:24:53.0",
        "node": {
            "id": 818,
            "title": "idea2",
            "body": "",
            "type": "topic",
            "accepted": false
        }
    },
    {
        "actionType": "edited",
        "canceled": false,
        "actionDate": "2019-01-23 22:26:53.0",
        "node": {
            "id": 797,
            "title": "Welcome to the Future of Hospitality, Powered by IoT",
            "body": "<div class=\"fr-view clearfix\">editing a child article</div>",
            "type": "kbentry",
            "accepted": false
        }
    },
    {
        "actionType": "labeled",
        "canceled": false,
        "actionDate": "2019-01-23 22:19:18.0",
        "node": {
            "id": 808,
            "title": "testkbthing",
            "body": "",
            "type": "topic",
            "accepted": false
        }
    },
    {
        "actionType": "posted",
        "canceled": false,
        "actionDate": "2019-01-23 22:19:18.0",
        "node": {
            "id": 809,
            "title": "Article posted from the API",
            "body": "<div class=\"fr-view clearfix\">This is the body of an article posted through the API</div>",
            "type": "kbentry",
            "accepted": false
        }
    },
    {
        "actionType": "commented",
        "canceled": false,
        "actionDate": "2019-01-23 20:44:36.0",
        "node": {
            "id": 816,
            "title": null,
            "body": "<div class=\"fr-view clearfix\">Customer Success should be able to answer your question.</div>",
            "type": "comment",
            "accepted": false
        }
    },
    {
        "actionType": "joined",
        "canceled": false,
        "actionDate": "2019-01-23 17:07:47.0"
    },
    {
        "actionType": "joined",
        "canceled": false,
        "actionDate": "2019-01-23 17:03:28.0"
    },
    {
        "actionType": "suggested",
        "canceled": false,
        "actionDate": "2015-09-01 12:00:00.0",
        "node": {
            "id": 819,
            "title": "title of an idea",
            "body": "<div class=\"fr-view clearfix\">body of an idea</div>",
            "type": "idea",
            "accepted": false
        }
    }
]
Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!