Overview
Information
- URL Params
      No params needed; the user ID is already a path param.
- Data Params
      No data params
For Permissions, Requirements, and More Detailed Information:
Reference the GDPR Plugin Docs in the Non-Reference portion of the documentation.
A POST Suspend User Account request for a user named suspendabletestuser (userId:111) sent to https://apidocs.cloud.answerhub.com using a human-readable Username/Password (answerhub/test123) would look like this:
- cURL
 
        
        curl 
-u answerhub:test123
-H "Accept:application/json" 
-H "Content-Type:application/json"
-X POST "https://apidocs.cloud.answerhub.com/services/v2/users/gdpr/111/suspend.json"
        
    curl 
-u answerhub:test123
-H "Accept:application/json" 
-H "Content-Type:application/json"
-X POST "https://apidocs.cloud.answerhub.com/services/v2/users/gdpr/111/suspend.json"
      - Success Response:
      Code: 200
- Error Response:
      Code: 422 UNPROCESSABLE ENTRY
      Content: { error: "Invalid User Id" }
Successful Response:
- HTTP Status 200 - OK
 
- JSON
 
        
        {
    "message": "User 111 suspended successfully"
}
        
    {
    "message": "User 111 suspended successfully"
}
      
Priyanka Bhotika
Comments