Wikify a Node

You can use this API request to wikify a node (open for editing by anyone with the specified permission listed below). A "wiki" icon will appear next to the wikified node.

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

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

Other options: wrap

🚧

Permissions & Notes:

  • You must have the Mark as community wiki permission under Other Standard Roles in the Advanced Editor to wikify any node.

    • If the node you are trying to wikify is your own, you must have the Convert own posts to community wiki permission under Standard Roles in the Advanced Editor.
  • Any user with content editing permissions can edit wikified nodes. Usually only the node author (user that posted the node) can edit a node.

  • We added this request in version 1.6.3.

Sample Request

A PUT wikify a node request to wikify 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/wikify.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": "Wed Feb 06 16:24:08 UTC 2019",
            "canceled": false,
            "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!