Havri

Well-Known Member
Oct 28, 2013
86
19
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.
 

Havri

Well-Known Member
Oct 28, 2013
86
19
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
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?
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.