Make a Node a Favorite

You can use this API request to make a node a favorite.
The system tracks favorites on a per-user basis, with each user having a separate set of nodes marked as favorites.
The system automatically extracts the identity of the user, making the node a favorite from the credentials used to authenticate the request.


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

Other options: wrap


Permissions & Notes:

  • You must have the View the question page permission under Anonymous Roles in the Advanced Editor.

  • You must also have the Mark as favorite permission under Standard Roles in the Advanced Editor.

  • We added this request in version 1.6.3.

Sample Request

A PUT make a node a favorite request to make a node (nodeId: 544) a favorite 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 ""

Expected Response

Successful Response:

  • HTTP Status 200 - OK
    "success": true,
    "result": {
        "favoriteAction": {
            "id": 1062,
            "ip": "",
            "user": {
                "id": 108,
                "username": "admin",
                "avatarUrl": ""
            "actionDate": "Tue Feb 05 14:19:38 UTC 2019",
            "canceled": false,
            "extra": null,
            "private": false,
            "verb": "favorited",
            "node": {
                "id": 544,
                "type": "question"
        "favoriteCount": 1
Click Try It! to start a request and see the response here!