v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Domains

Change existing prefix for domain

Attempt to change existing domain with existing www. prefix to the one without, or vice-versa.

patch/v1/sites/{id}/maindomain/prefix

Path parameters

idinteger required

ID of the Site you are interacting with

Example:8880000888

Request body

wwwboolean

Use www.$domain rather than $domain

Example request

{
  "www": true
}

Response

OK

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

{
  "success": true,
  "errors": [],
  "messages": [],
  "result": {
    "success": true
  }
}