Change cPanel User Contact Preferences using External API

dezio

Registered
Apr 15, 2013
2
0
1
cPanel Access Level
Reseller Owner
Hello,

I want two checkbox located here:
cPanel > Preferences section : Update Contact Info > Contact Information & Preferences > Contact Preferences
to be unchecked by default when I create cpanel account using WHMCS.

Because I am reseller, only way I think I can do it is using external API, but I cannot find how I can do that.

I looked at this function call: Modify Account — modifyacct
but there isnt any input option for those two checkboxes..

Is there any other way to do that?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello :)

The configuration values for these options are stored in:

Code:
/home/$username/.cpanel/contactinfo
In particular, with these lines:

Code:
notify_bandwidth_limit: 0
notify_disk_limit: 0
notify_email_quota_limit: 0
You could develop a custom script that manually modifies this file after an account is created.

Thank you.