Trying to use whmapi1 to disable a feature

ltellier

Member
Aug 23, 2016
6
1
3
Montreal
cPanel Access Level
DataCenter Provider
Hi,

We're still new to the cpanel's API.
We'd like to automate deployment of our cpanel servers and would like to disable some features from the default feature list.

We've been trying to use the following command but so far, it appears to be disabling ALL features from the default feature list:

Code:
whmapi1 update_featurelist featurelist=default autossl=0
Do you guys have any ideas what might be wrong ?

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello,

Thanks for the report!

I've reproduced this issue and opened internal case CPANEL-8271 to address the problem. I'll update this thread with more information on the status of this case as it becomes available. In the meantime, the temporary workaround is to edit the feature list via "WHM >> Feature Manager" or by manually editing /var/cpanel/features/$feature-list-name.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello,

To update, this is fixed in cPanel version 60 (tentatively planned for publication to the "Current" build tier in October):

Fixed case CPANEL-8271: update_featurelist: allow editing only one feature via API.

Thank you.