This function initiates the conversion process for an addon domain into a cPanel account. |
For information about the data that the system migrates when you convert an addon domain, read our Addon Domain Conversion List documentation. |
Examples
|
Parameter | Type | Description | Possible values | Example | |
---|---|---|---|---|---|
username | string | Required The username for a specified account. | A valid cPanel user account. | username
| |
domain | string | Required The addon domain to convert into an account's main domain. | A valid addon domain. | example.com | |
pkgname | string | The hosting package that you want to assign to the new account. This value defaults to | A valid package name. | default | |
copymysqldb | string | Copy a MySQL database from the source account to the new account with a new database name.
If you do not specify this parameter, the system does not copy any MySQL databases to the new account. | A valid MySQL database. | olddatabase=newdatabase | |
movemysqldb | string | Move the specified MySQL database from the source account to the new account.
If you do not specify this parameter, the system does not move any MySQL databases to the new account. | A valid MySQL database. | exampledb2 | |
movemysqluser | string | Move the specified MySQL database user from the source account into the new MySQL database account.
If you do not specify this parameter, the system does not move any MySQL database users to the new account. | A valid MySQL database username. | dbuser |
This function only returns metadata.
Function information
About WHM API 1Find a functionRelated functions |