Close a Node

You can use this API request to close down a node (Questions Only). You cannot edit a closed node any further unless you reopen it.


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

Specific: prompt, lock
Other options: wrap


Permissions & Notes:

  • You must have the Close any question permission under Other Standard Roles in the Advanced Editor to close any node.

    • If the node is your own, you must have the Close own question permission under Other Standard Roles in the Advanced Editor.
  • Use the mandatory request parameter prompt to specify the reason why the node is being closed.

  • Use the optional request parameter lock to specify if you want the node's comments locked. Values are either true or false. The default value is false.

  • We added this request in version 1.6.3.

Sample Request

A PUT close a node request to close a node (nodeId: 832) because "Question has been answered" sent to using a human-readable Username/Password (answerhub/test123) would look like this:

-u answerhub:test123 
-H "Accept: application/json" 
-H "Content-type: application/json" 
-X PUT " has been answered" -v

Expected Response

Successful Response:

  • HTTP Status 200 - OK
    "success": true,
    "result": {
        "closeAction": {
            "id": 1094,
            "ip": "",
            "user": {
                "id": 108,
                "username": "admin",
                "avatarUrl": ""
            "actionDate": "Thu Feb 07 15:05:50 UTC 2019",
            "canceled": false,
            "extra": "Question has been answered",
            "private": false,
            "verb": "closed",
            "node": {
                "id": 832,
                "type": "question"
Click Try It! to start a request and see the response here!