SOLVED cPAPI2 AddonDomain without FTP?

smurf

Well-Known Member
Jun 4, 2009
56
10
58
Hi,

In the cPanel UI we have the option to create an Addon Domain without creating an FTP account (default option). This means it's possible to add addon domains to a package with a FTP account limit of zero.

But running the cPAPI2 AddonDomain function on the same account fails, requiring a FTP account limit greater than zero.

Is there an extra parameter we can use with cPAPI2 AddonDomain function to bypass the FTP account limit?

Bash:
cpanelresult:
  apiversion: 2
  data:
    -
      reason: You have exceeded the maximum allowed FTP (File Transfer Protocol) accounts.
      result: 0
  error: You have exceeded the maximum allowed FTP (File Transfer Protocol) accounts.
  event:
    result: 1
  func: addaddondomain
  module: AddonDomain
 

cPanelTJ

Product Owner
Staff member
Jan 29, 2019
97
50
93
Houston, TX
cPanel Access Level
Root Administrator
Twitter
Hi there @smurf !

The cPanel UI is using an undocumented parameter called ftp_is_optional. To bypass the FTP quota check as a precondition, set the value of the parameter to 1.

Thank you for bringing this to our attention. I'll make sure we get that parameter documented.