Description
This function adds bandwidth to an account.
Warning:
We removed this function in cPanel & WHM version 11.52. We strongly recommend that you use the following UAPI function instead of this function:
Bandwidth::query
— This function queries an account's bandwidth data and returns a report.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
bytes |
integer |
Required The bandwidth amount. |
Any positive integer between 1 and 2^64. |
672 |
domain |
string |
Required The domain's name. |
A valid domain name. |
example.com |
Returns
Return |
Type |
Description |
Possible values |
Example |
reason |
string |
A message of success of a reason for failure.
|
|
Bandwidth added for processing. |
result |
Boolean |
Whether the function succeeded.
|
|
1 |