/api/reseller/users/{userId}/bandwidth/reduce
GET
/api/reseller/users/{userId}/bandwidth/reduce
const url = 'https://dashboard.residential.rayobyte.com/api/reseller/users/9ee3d294-6f1e-489c-9b9b-e25e9a4e37a8/bandwidth/reduce?megabytes=1000';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/bandwidth/reduce?megabytes=1000' \ --header 'Authorization: Bearer <token>'Reduce traffic on the Sub-user account
Allows the Reseller to reduce the traffic available to the Sub-user. The amount of traffic to reduce is transmitted in megabytes. When the Sub-user’s balance decreases, the traffic returns to the Reseller’s 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-e25e9a4e37a8Query Parameters
Section titled “Query Parameters”megabytes
required
number
Traffic amount in megabytes
Example
1000Responses
Section titled “Responses”Success
Media typeapplication/json
object
status
string
date
string
data
object
Examples
ExampleSuccess
Updated traffic balance
{ "status": "SUCCESS", "date": "Mon, 1 Jan 2022 12:00:00 GMT", "data": { "trafficBalanceKb": 5337200, "trafficBalanceString": "5.1 GB" }}API call failed
Media typeapplication/json
object
status
string
date
string
error
string
Examples
ExampleNo traffic amount
Amount of traffic to add is not specified
{ "status": "FAIL", "date": "Mon, 1 Jan 2022 12:00:00 GMT", "error": "Traffic amount is required"}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
ExampleProxy User balance too low
Proxy User balance lower than the requested amount
{ "status": "FAIL", "date": "Mon, 1 Jan 2022 12:00:00 GMT", "error": "Proxy user balance is to low"}Was this page helpful?
Thanks — that helps us fix it.