Skip to content

/api/reseller/users/{userId}/suspend

GET
/api/reseller/users/{userId}/suspend
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.

userId
required
string

Proxy User ID

Example
9ee3d294-6f1e-489c-9b9b-e25e9a4e37a8

Success

Media typeapplication/json
object
status
string
Allowed values: SUCCESS
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
Allowed values: FAIL
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?