WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_application_contact_event_importance
- A server running WHM.
https://whm-server.tld:2087/json-api/get_application_contact_event_importance
- 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_application_contact_event_importance?app=Check&event=SecurityAdvisorStateChange'{ "data": { "importance": 0, "name": "Disabled" }, "metadata": { "command": "get_application_contact_event_importance", "reason": "OK", "result": 1, "version": 1 } }
Request
This function retrieves the importance level of an application's events for WHM's Contact Manager interface (WHM >> Home >> Server Contacts >> Contact Manager).
Note:
The system creates a notification setting for the application's events if one does not already exist.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_application_contact_importance
- A server running WHM.
https://whm-server.tld:2087/json-api/get_application_contact_importance
- 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_application_contact_importance?app=Check'{ "data": { "importance": 0, "name": "Disabled" }, "metadata": { "command": "get_application_contact_importance", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/send_test_posturl
- A server running WHM.
https://whm-server.tld:2087/json-api/send_test_posturl
- 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/send_test_posturl?url=Click+to+view...https%253A%252F%252Fwww.example.com%252Fevents.cgi%253Fapikey%253D12345%2526user%253Dusername*password%253D12345luggage'{ "data": { "message_id": "554d2cbd-efe61da3cacb" }, "metadata": { "command": "send_test_posturl", "reason": "OK", "result": 1, "version": 1 } }