You can use this API request to make a user start following a specific node.
/services/v2/node/[nodeId]/follow.json
You can use the following parameters in your make user a node follower request:
Specific: follower
Other options: wrap
Permissions & Notes:
You must have the Follow questions, users, topics, and categories permission under Standard Roles in the Advanced Editor.
In order to use the follower parameter, you must have the Edit users and groups permission under Site Administration Roles in the Advanced Editor.
- The follower parameter specifies the user that will become a follower of the node.
- The follower parameter, will be the user's userId.
We added this request in version 1.6.3.
Sample Request
A PUT make a user a node follower request to make the API authenticated user (userId: 7) a follower of a node (nodeId: 806) 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/806/follow.json?follower=7" -v
Expected Response
Successful Response:
- HTTP Status 200 - OK