This function returns whether a cPanel account can create new subdomains or addon domains.
Note:
Creating a new addon domain is dependent on the creation of subdomains. If the cPanel account has reached its limit for subdomains, you cannot create a new addon domain, even if the limit for addon domains has not been reached.
uapi --output=jsonpretty \ --user=username \ Sitejet \ can_create_domains
{- "apiversion": 3,
- "func": "can_create_domains",
- "module": "Sitejet",
- "result": {
- "data": 1,
- "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}