WHM API.
Download OpenAPI description
Overview
URL
WebPros International, LLC
License
Languages
Servers
Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
A server running WHM.
https://{host}:{port}/json-api/
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/remove_override_features_for_user
- A server running WHM.
https://whm-server.tld:2087/json-api/remove_override_features_for_user
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
remove_override_features_for_user \
user='username' \
features='["sslinstall","videotut"]'Response
application/json
{ "metadata": { "command": "remove_override_features_for_user", "reason": "OK", "result": 1, "version": 1 } }
Request
This function checks whether a user has access to a feature on a feature list.
Security
BasicAuth
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/verify_user_has_feature
- A server running WHM.
https://whm-server.tld:2087/json-api/verify_user_has_feature
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
verify_user_has_feature \
user='username' \
feature='sslinstall'Response
application/json
{ "data": { "has_feature": 1, "query_feature": "sslinstall" }, "metadata": { "command": "verify_user_has_feature", "reason": "OK", "result": 1, "version": 1 } }