Unreport a Node

You can use this API request to cancel a report for a previously reported node. The reported node will no longer appear in Content > Manage > Reported in the admin dashboard.

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

You can use the following parameters in your unreport a node request:

Other options: wrap

🚧

Permissions & Notes:

  • You must have the Cancel any user's report on posted content permission under Moderation Roles in the Advanced Editor.

  • We added this request in version 1.6.3.

Sample Request

A PUT unreport a node request to unreport a node (nodeId: 828) 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 PUT "https://apidocs.cloud.answerhub.com/services/v2/node/828/cancelReport.json" -v

Expected Response

Successful Response:

  • HTTP Status 200 - OK
{
    "success": true,
    "result": {
        "reportCount": 0,
        "reportAction": {
            "id": 1065,
            "ip": "172.20.0.3",
            "user": {
                "id": 108,
                "username": "admin",
                "avatarUrl": "https://secure.gravatar.com/avatar/4e955c70eeff0abe1974c9be300a8887?d=identicon&r=PG"
            },
            "actionDate": "2019-02-05 14:56:54.0",
            "canceled": true,
            "canceledByUser": {
                "id": 108,
                "username": "admin",
                "avatarUrl": "https://secure.gravatar.com/avatar/4e955c70eeff0abe1974c9be300a8887?d=identicon&r=PG"
            },
            "canceledDate": "Tue Feb 05 15:16:33 UTC 2019",
            "extra": "This violates our terms.",
            "private": false,
            "verb": "reported",
            "node": {
                "id": 828,
                "type": "kbentry"
            }
        }
    }
}
Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!