Replace current maindomain with different one

Updates the site's domain name

Path Params
integer
required

ID of the Site you are interacting with

Body Params

New maindomain.

string

Site's new domain name

string
enum

Switch between the Live domain name and CDN URL. WARNING: WordPress can only have 1 URL and this will break your live site if you switch to CDN URL

Allowed:
boolean
Defaults to false

Use this in conjunction with active_wordpress_domain set to cdn_url to revert this site back to a cdn_url from live domain. Warning: This will cause the live domain to no longer function and will remove all additional domains

boolean
Defaults to false

Use this to convert an addon domain to the maindomain. The domain passed will be converted from an addon domain to the maindomain and the existing maindomain will be removed.

Responses

Language
Credentials
Bearer
JWT
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json