Skip to main content
POST
Create domain action

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

organization
string
required

The organization slug

server
integer
required

The server ID

site
integer
required

The site ID

domainRecord
integer
required

The domain record ID

Body

application/json
action
enum<string>
required

The action to perform on the domain.

Available options:
enable,
disable,
mark-as-primary
Example:

"'enable'"

update_wordpress_urls
boolean

Whether to update WP_HOME and WP_SITEURL in wp-config.php to point at the new primary domain. Only applies to the mark-as-primary action on WordPress sites.

Example:

true

Response