Cannot remove addon domains via API2
Hi there,
I'm trying to remove an addon domain using the deladdondomain function from API2:
But I get the following error:
Well, it does. I checked it. So why am I getting this error?
$xmlapi->api2_query($account, "AddonDomain", "deladdondomain",
[
'domain' => $dom,
'subdomain' => $subdom
]
);But I get the following error:
The subdomain 13cptesttld does not correspond to 13cptest.tld.Well, it does. I checked it. So why am I getting this error?
-
Hey there! Can you let me know the full API command you're using so I can test that? 0 -
Hey there! Can you let me know the full API command you're using so I can test that?
Thanks, I already managed to solve that. I needed to add the domain name for the cPanel account (example.com) to the subdomain. So instead of 13cptesttld, 13cptesttld.example.com. Quite misleading though, because when you get the subdomain via API, it gives you just 13cptesttld.0
Please sign in to leave a comment.
Comments
3 comments