WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
Do not display the reseller's deleted cPanel accounts in the function's acct return. This parameter modifies the data output in the acct return.
1— Do not display.0— Display.
Do not display the reseller's suspended cPanel accounts in the function's acct return. This parameter modifies the data output in the acct return.
1— Do not display.0— Display.
The month to query, in numeric format.
This parameter defaults to the current month.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/resellerstats
- A server running WHM.
https://whm-server.tld:2087/json-api/resellerstats
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/whm.openapi/resellerstats?user=username&filter_deleted=0&filter_suspended=0&month=2&year=2019'{ "data": { "reseller": { … } }, "metadata": { "command": "resellerstats", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/set_public_contact
- A server running WHM.
https://whm-server.tld:2087/json-api/set_public_contact
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/whm.openapi/set_public_contact?name=Bob%27s+Hosting&url=https%3A%2F%2Fbobshosting.net'{ "metadata": { "command": "set_public_contact", "reason": "OK", "result": 1, "version": 1 } }
Request
This function adds IP addresses to a reseller's account.
Note:
To assign a main IP address to a reseller's account, call the WHM API 1 setresellermainip function.
For more information, read our Manage Reseller's IP Delegation documentation.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/setresellerips
- A server running WHM.
https://whm-server.tld:2087/json-api/setresellerips
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/whm.openapi/setresellerips?user=username&delegate=1&ips=192.168.0.20'{ "data": { "all": 1, "ip": [ … ] }, "metadata": { "command": "setresellerips", "reason": "OK", "result": 1, "version": 1 } }