Return Domain Availability

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.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Sitejet/can_create_domains
Request samples
uapi --output=jsonpretty \
  --user=username \
  Sitejet \
  can_create_domains
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "can_create_domains",
  • "module": "Sitejet",
  • "result": {
    • "data": 1,
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}