Start a Nova for WordPress walkthrough
Changed onThis function starts a Nova for WordPress walkthrough for the specified domain. It creates a cPanel API token and creates a Nova magic link whose callback points directly at UAPI's import_website function, then returns the magic link. It does not install WordPress. The user is sent straight to Nova for WordPress, which builds the site and publishes it back into the account via UAPI's import_website function.
Note:
- This function requires the nova-wordpress entitlement.
- This function requires the mysql feature, because the WordPress install provisions a MySQL database.
- This function also requires the redirects feature. An account without it receives a synchronous error before any token is created or any install task is queued.
- This function requires the apitokens feature, because the walkthrough creates a cPanel API token.
- Your account is handed off to Nova for WordPress. Nova's callback into UAPI's WPX::import_website function queues a WP Toolkit Site Import. So this function requires the wp-toolkit-site-import feature. An account without it receives a synchronous error before any token is created or any install task is queued. If an administrator has disabled wp-toolkit-site-import server-wide (the disabled feature list), the nova-wordpress feature itself becomes unavailable, and this function instead fails with the not-entitled error from the Nova for WordPress entitlement check.
- If the domain already has one or more WordPress installations, the function returns a collision response listing the existing installations so the caller can prompt the user to remove them and retry.
- The function refuses the call when the account has too little free disk space for a WordPress installation. That check runs before the token creation, so a refusal never leaves a live token behind.
- Unlike create_website, this function does not enforce the account's maximum WordPress website count. That limit is a WordPress Toolkit plan constraint, and the Nova walkthrough deliberately does not gate on it.
- If the Nova call fails after the token is created, the system revokes the token and returns an error, so a failed walkthrough leaves no live token.
Request
- Base URLhttps://cpanel-server.tld:2083/execute
- AuthHTTP basic
Request body application/x-www-form-urlencoded
Example request
{
"colorScheme": "dark",
"domain": "example.com",
"promptToken": "QnVpbGQgbWUgYSBjb2ZmZWUgc2hvcCBzaXRl",
"return_url": "https://cpanel-server.tld:2083/frontend/jupiter/index.html"
}Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "create_nova_for_wordpress_website",
"module": "WPX",
"result": {
"data": {
"blocked_by": [
"system_default"
],
"domain": "example.com",
"domain_package": "ea-php73",
"domain_version": "7.3",
"domain_version_source": "domain",
"domain_version_vhost": "example.com",
"effective_version": "7.3",
"existing_installations": [
{
"id": 17,
"url": "https://example.com"
}
],
"magic_link": "https://nova.example.com/magic/abc123",
"required_version": "7.4",
"status": "collision",
"system_default_package": "ea-php73",
"system_default_version": "7.3"
},
"metadata": {
"transformed": 1
},
"status": 1
}
}Changes
- warning
added the new
unsupported_phpenum value to the//response property for the response status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- warning
- info
endpoint added
- info