/api/reseller/users/{userId}/activate
GET
/api/reseller/users/{userId}/activate
const url = 'https://dashboard.residential.rayobyte.com/api/reseller/users/9ee3d294-6f1e-489c-9b9b-e25e9a4e37a8/activate';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/activate \ --header 'Authorization: Bearer <token>'Activates the sub-user account and allows him to use the proxy service
The endpoint allows the Reseller to allow the Sub-user access to the proxy service. It is possible to activate a Sub-user only if the traffic balance is positive. It is used either to reactivate a previously suspended account or at the stage of creating a Sub-user account (after first replenishing his 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 activated
{ "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.