Unsuspend a User

You can use this request to unsuspend a user.

/services/v2/user/[userId]/unsuspendUser.json

You can use the following parameters in your unsuspend a user request:

Specific options: reason

🚧

Permissions & Notes:

  • You must have the Suspend User permission under Moderation Roles in the Advanced Editor.

  • We added this request in version 1.6.3.

Sample Request

A PUT unsuspend a user request to unsuspend a user (userId: 111) 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/user/111/unsuspendUser.json" -v

In the example above, a moderator manually unsuspended suspendabletestuser (user 111). The user will not receive a notification, they will just be able to log in to the community again.

Expected Response

Successful Response:

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