WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
Request
This function initiates the conversion process for an addon domain into a cPanel account.
Note:
For information about the data that the system migrates when you convert an addon domain, read our Addon Domain Conversion List documentation.
Important:
When you disable the Web Server role, the system disables this function.
The addon domain to convert into an account's main domain.
Copy a MySQL® database from the source account to the new account with a new database name.
This parameter's format consists of copymysqldb, a hyphen, and the name of the existing database. For example, copymysqldb-olddatabase.
If you do not specify this parameter, the system does not copy any MySQL databases to the new account.
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.
Note:
To move multiple databases, increment the parameter name. For example, movemysqldb-1, movemysqldb-2, and movemysqldb-3.
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.
Note:
To move multiple database users, increment the parameter name. For example, movemysqluser-1, movemysqluser-2, and movemysqluser-3.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/convert_addon_initiate_conversion
- A server running WHM.
https://whm-server.tld:2087/json-api/convert_addon_initiate_conversion
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/whm.openapi/convert_addon_initiate_conversion?domain=example.com&username=username©mysqldb-*=string&movemysqldb=string&movemysqluser=string&pkgname=mycustompkg'{ "data": {}, "metadata": { "command": "convert_addon_initiate_conversion", "reason": "OK", "result": 1, "version": 1 } }
Request
This function returns a list of addon domains that belong to the current user.
Important: When you disable the Web Server role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/convert_addon_list_addon_domains
- A server running WHM.
https://whm-server.tld:2087/json-api/convert_addon_list_addon_domains
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/convert_addon_list_addon_domains{ "data": { "example.com": { … } }, "metadata": { "command": "convert_addon_list_addon_domains", "reason": "OK", "result": 1, "version": 1 } }
Request
This function returns a list of addon domains undergoing conversion into cPanel accounts.
Important:
When you disable the Web Server role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/convert_addon_list_conversions
- A server running WHM.
https://whm-server.tld:2087/json-api/convert_addon_list_conversions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/convert_addon_list_conversions{ "data": { "conversions": [ … ] }, "metadata": { "command": "convert_addon_list_conversions", "reason": "OK", "result": 1, "version": 1 } }