Unwikify a Node

You can use this API request to unwikify a node (close for editing).

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

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

Other options: wrap

🚧

Permissions & Notes:

  • You must have the Mark as community wiki permission to unwikify any node.
    • If the node you are trying to unwikify is your own, you must have the Convert own posts to community wiki permission.
  • A non-wikified node can be only edited by only the node author (the user that posted the node).
  • We added this request in version 1.6.3.

Sample Request

A PUT unwikify a node request to unwikify a node (nodeId: 803) 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/803/cancelwiki.json"

Expected Response

Successful Response:

  • HTTP Status 200 - OK
{
    "success": true,
    "result": {
        "wikifyAction": {
            "id": 1058,
            "ip": "172.18.0.3",
            "user": {
                "id": 108,
                "username": "admin",
                "avatarUrl": "https://secure.gravatar.com/avatar/4e955c70eeff0abe1974c9be300a8887?d=identicon&r=PG"
            },
            "actionDate": "2019-02-06 16:24:08.0",
            "canceled": true,
            "canceledByUser": {
                "id": 108,
                "username": "admin",
                "avatarUrl": "https://secure.gravatar.com/avatar/4e955c70eeff0abe1974c9be300a8887?d=identicon&r=PG"
            },
            "canceledDate": "Wed Feb 06 16:44:27 UTC 2019",
            "extra": null,
            "private": false,
            "verb": "wikified",
            "node": {
                "id": 803,
                "type": "kbentry"
            }
        }
    }
}
Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!