Update an existing domain for an install
PATCH /installs/{install_id}/domains/{domain_id}
Updates an existing domain for an install. Cannot set a duplicate, wildcard, or redirected domain as the primary.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The install ID
ID of domain
Request Body
Section titled “Request Body ”Properties
- primary - optional - Boolean value to make the domain primary on the given install
- redirect_to - optional - The UUID of another Domain record, or “nil” to remove an existing redirect.
- secure_all_urls - optional - Boolean value to force all URLs to use HTTPS
object
Example
trueExample
6977805b-1f65-4a5d-8d36-6fe609a4d9f3Responses
Section titled “ Responses ”Updated
object
Example
torquemag.ioExample
trueExample
trueExample
e41fa98f-ea80-4654-b229-a9b765d0863aThe WP Engine network type configured for the domain. Possible values are ‘AN’ (Advanced Network) ‘GES’ (Global Edge Security) and ‘LEGACY’.
Example
ANDetails about the network configuration for the domain.
object
DNS configuration information for the domain.
object
The CNAME value to use to configure a DNS CNAME record for the domain.
Example
wp.wpenginepowered.comIP addresses that can be used to configure a DNS A record for the domain.
Example
[ "127.0.0.1"]object
The status of the network configuration for the domain.
Example
ACTIVESSL configuration status
object
Example
activeobject
Example
e41fa98f-ea80-4006-b229-a9b765d0863aExample
redirect.comBad Request
object
A message regarding the error that occurred on the server
Example
Invalid Site: Name cannot be empty.(Optional) A URL where documentation regarding this specific error can be found
An array of error objects describing specific errors that arose when servicing the request
object
The name of the resource that was being processed when the error occurred
Example
Site(Optional) The specific field associated with the error
Example
name(Optional) A type associated with the error. invalid_value, access_error, value_unavailable
Example
invalid_value(Optional) A machine code relating to the error that occurred with the field and resource
Example
too_long(Optional) A human-readable message relating to the error that occurred with the field and resource
Example
Name is too long (maximum is 40 characters)Authentication Error
object
A message regarding the error that occurred on the server
Example
Bad Credentials(Optional) A URL where documentation regarding this specific error can be found
Not authorized
object
A message regarding the error that occurred on the server
Example
You don't have permission to perform that action(Optional) A URL where documentation regarding this specific error can be found
Not found
object
A message regarding the error that occurred on the server
Example
Not Found(Optional) A URL where documentation regarding this specific error can be found
Too many requests
Service unavailable