This function creates an alias (parks a domain on a web virtual host).
domain required | string <domain> The domain name to park. Example: domain=park.example.com |
username required | string The cPanel user account. Example: username=username |
web_vhost_domain required | string An existing web virtual host to which the new domain name should be added. Note: If this is not the cPanel account’s main domain, then the system will consider the new domain to be an addon domain. Example: web_vhost_domain=vhost.example.com |
HTTP Request was successful.
object |
whmapi1 --output=jsonpretty \ create_parked_domain_for_user \ domain='park.example.com' \ username='username' \ web_vhost_domain='vhost.example.com'
{- "metadata": {
- "command": "create_parked_domain_for_user",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}