/api/reseller/users/{userId}/suspend
GET
/api/reseller/users/{userId}/suspend
const url = 'https://dashboard.residential.rayobyte.com/api/reseller/users/9ee3d294-6f1e-489c-9b9b-e25e9a4e37a8/suspend';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://dashboard.residential.rayobyte.com/api/reseller/users/9ee3d294-6f1e-489c-9b9b-e25e9a4e37a8/suspend \ --header 'Authorization: Bearer <token>'Suspends the Sub-user’s account and blocks him from accessing the proxy service
The access point allows the Reseller to block the Sub-user from accessing the proxy service. You can reactivate a Sub-user account using the corresponding API call if there is a positive traffic balance.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”userId
required
string
Proxy User ID
Example
9ee3d294-6f1e-489c-9b9b-e25e9a4e37a8Responses
Section titled “Responses”Success
Media typeapplication/json
object
status
string
date
string
data
object
Examples
ExampleSuccess
Successfully suspended
{ "status": "SUCCESS", "date": "Mon, 1 Jan 2022 12:00:00 GMT"}Not authorized
Media typetext/html
string
Examples
ExampleNot authorized
Not authorized
Not authorized.API call failed
Media typeapplication/json
object
status
string
date
string
error
string
Examples
ExampleUser not found
User not found
{ "status": "FAIL", "date": "Mon, 1 Jan 2022 12:00:00 GMT", "error": "User not found"}Was this page helpful?
Thanks — that helps us fix it.