Description

This function sets the importance level of an application's events for WHM's Contact Manager interface (Home >> Server Contacts >> Contact Manager).

The system will create a notification setting for the application's events if one does not already exist.

Examples


https://hostname.example.com:2087/cpsess##########/json-api/set_application_contact_importance?api.version=1&app=Check&importance=Disabled
https://hostname.example.com:2087/cpsess##########/xml-api/set_application_contact_importance?api.version=1&app=Check&importance=Disabled
whmapi1 set_application_contact_importance app=Check importance=Disabled

{
 "metadata": {
    "version": 1,
    "reason": "OK",
    "result": 1,
    "command": "set_application_contact_importance"
  }
}
<result>
    <metadata>
        <reason>OK</reason>
        <version>1</version>
        <result>1</result>
        <command>set_application_contact_importance</command>
    </metadata>
</result>

     

Parameters

ParameterTypeDescriptionPossible valuesExample
appstring

Required

The application module's name.

A valid cPanel & WHM module name.Check
importancestring

Required

The importance level at which to send the notification.

  • High
  • Medium
  • Low
  • Disabled

Disabled

Returns

This function only returns metadata.