speckados

Well-Known Member
Hi.

I've working with api version 1

On [doc](https://api.docs.cpanel.net/openapi/) I don't see how to create addon domain to account or how to create and parking domain to account.

Some endpoints are not documented but search with googling.

Any ideas if the're arr a endpoint for this ?

Thre're for [subdomains](https://api.docs.cpanel.net/openapi/whm/operation/create_subdomain/).

Best regards.
 

speckados

Well-Known Member
From what I see in the current API docs, there are certain things that can only be done with a strange workaround using parameters that call the UAPI. That is to say, one has to go searching the page, and when not found go to google to get to the old documentation, which is full of "deprecates" and use the api call with special parameters. In my case I was looking for how to add a simple additional domain to a cpanel account and in the end I found that I should do it, reading the old doc, https://documentation.cpanel.net/display/DD/cPanel+API+2+Functions+-+AddonDomain::addaddondomain, which also marks a API version 2, when the "new" documentation marks the "version 1"

Something amazing, and very "usable" and very readable the doc.

 

cPanelTJ

Product Owner
Staff member
Jan 29, 2019
97
49
93
Houston, TX
cPanel Access Level
Root Administrator
Twitter
From what I see in the current API docs, there are certain things that can only be done with a strange workaround using parameters that call the UAPI. That is to say, one has to go searching the page, and when not found go to google to get to the old documentation, which is full of "deprecates" and use the api call with special parameters. In my case I was looking for how to add a simple additional domain to a cpanel account and in the end I found that I should do it, reading the old doc, https://documentation.cpanel.net/display/DD/cPanel+API+2+Functions+-+AddonDomain::addaddondomain, which also marks a API version 2, when the "new" documentation marks the "version 1"

Something amazing, and very "usable" and very readable the doc.

@speckados ,

To confirm for you, it is perfectly fine to use the cPanel API 2 functions such as AddonDomain::addaddondomain, even though they do not appear on api.docs.cpanel.net yet.
 
  • Like
Reactions: cPanelAnthony