Skip to content
WP EngineDocumentation

Mark domain as primary.

POST
/v1/accounts/{account}/apps/{app}/environments/{environment}/domainMappings/{domain}:markPrimary
curl --request POST \
--url https://js.wpengineapi.com/v1/accounts/example/apps/example/environments/example/domainMappings/example:markPrimary \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{}'
account
required
string

Name of your WP Engine Headless Platform account

app
required
string

Name of your Headless Platform application

environment
required
string

ID of your environment

domain
required
string

Domain name of the domain associated with the environment by this DomainMapping Must be a valid domain name as defined in RFC-1123

Media typeapplication/json
Request to set domain mapping as primary
object
Examplegenerated
{}

A successful response.

Media typeapplication/json
Response of MakePrimaryDomainMappingRequest For now we don't have feedback from this operation The response is defined as empty message Following AIP-151 (https://google.aip.dev/151)
object
Examplegenerated
{}