WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
Request
This function creates or updates a feature list.
Note:
A reseller must possess the Add/Remove Package feature to use this function.
Whether to add a specific feature in the feature list.
1— Add the feature.0— Do not add the feature.
Note:
The parameter's name is a feature's name. For example, the
changemx=1adds the Change Mail Exchanger feature to the feature list.You can add or omit multiple features.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/create_featurelist
- A server running WHM.
https://whm-server.tld:2087/json-api/create_featurelist
- 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/create_featurelist?featurelist=CustomFeatureList&featurelistname=1&overwrite=1'{ "data": { "featurelist": "Arthur" }, "metadata": { "command": "create_featurelist", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/delete_featurelist
- A server running WHM.
https://whm-server.tld:2087/json-api/delete_featurelist
- 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/delete_featurelist?featurelist=TestList'{ "data": { "deleted_featurelist": "TestList" }, "metadata": { "command": "delete_featurelist", "reason": "OK", "result": 1, "version": 1 } }
Request
This function returns the contents of a dynamicui file. For more information, read our Guide to WHM dynamicui Files documentation.
A comma-separated list of the application entries to return.
To determine the application's name, find its file value in the dynamicui.conf file, and then remove the file extension.
If you do not specify this value, the function returns the entire dynamicui.conf file.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_available_applications
- A server running WHM.
https://whm-server.tld:2087/json-api/get_available_applications
- 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/get_available_applications?applications_list=create_support_ticket&file=dynamicui.conf'{ "data": { "groups": [ … ], "raw": [ … ] }, "metadata": { "command": "get_available_applications", "reason": "OK", "result": 1, "version": 1 } }