Make a User Unfollow a Topic

You can use this API request to make a user stop following a specific topic.

/services/v2/topic/[topicId]/unfollow.json

You can use the following parameters in your make a user unfollow a topic 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.

  • You must be the site System Administrator to make other users follow nodes.

  • The follower parameter specifies the user that will unfollow the topic.

    • The follower parameter will be the user's userId.
    • Add the follower parameter with the -d tag in cURL
    • If you do not use the follower parameter, the user whose credentials you included in the request becomes the node follower.
  • We added this request in version 1.6.3.

Sample Request

A PUT make a user unfollow a topic request to make the API authenticated user (userId: 31) unfollow a topic (topicId: 127) send 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/topic/127/unfollow.json?follower=31" -v

Expected Response

Successful Response:

  • HTTP Status 200 - OK
Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!