Skip to content

main_domain_change_unavailable

Main domain cannot be changed. HTTP status 409.

The main domain of this hosting account cannot be changed through the API. `detail` gives the reason: the current main domain has subdomains, the account is not active, it runs on our previous hosting platform, or its domains could not be read.

What to do

If detail says the domains could not be read, retry shortly. In the other cases contact support with the requestId to have staff make the change. GET /api/v2/shared-hosting/{accountId}/actions/change-main-domain runs the same check without changing anything.

What the message says

  • The current main domain has subdomains. Contact support and we will change the main domain for you.

Example

Response 409
{
"type": "https://developer.hostup.se/errors/main_domain_change_unavailable",
"title": "Main domain cannot be changed",
"status": 409,
"detail": "The current main domain has subdomains. Contact support and we will change the main domain for you.",
"code": "main_domain_change_unavailable",
"requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3"
}

Branch on code, not on title or detail. When you contact support about it, include the requestId. More in Errors and retries.

Endpoints that return it