Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Add subdomain API

Discussion in 'cPanel Developers' started by Havri, Dec 6, 2017.

  1. Havri

    Havri Well-Known Member

    Joined:
    Oct 28, 2013
    Messages:
    80
    Likes Received:
    17
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello,

    I want to create a bash script that creates a subdomain for a user account and then removes it, if the user asks. Of course, I want this to be done at the press of a button.

    Is there an API that I can use to help me create this functionality? I saw something that could help me but it's deprecated.

    Thank you.
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,561
    Likes Received:
    42
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Havri

    Havri Well-Known Member

    Joined:
    Oct 28, 2013
    Messages:
    80
    Likes Received:
    17
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, I saw this API function, but it says "We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.".

    Is there a risk in using this API call or will it be removed in a future release? Will you make an equivalent UAPI call?

    Thank you.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    There are no immediate plans to remove cPanel API 2 from the product. In the event we do remove it in the future, we would publish information about it's impending removal in advance so that you have time to prepare.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice