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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add subdomain API

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

  1. Havri

    Havri Well-Known Member

    Joined:
    Oct 28, 2013
    Messages:
    71
    Likes Received:
    16
    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,543
    Likes Received:
    38
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
  3. Havri

    Havri Well-Known Member

    Joined:
    Oct 28, 2013
    Messages:
    71
    Likes Received:
    16
    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:
    41,502
    Likes Received:
    1,616
    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.
     
Loading...

Share This Page