v1
latestOpenAPI 3.0.02026-07-14198572488.4 KBDomains
Update maindomain validation method or SSL CA
Allows for changing between DNS and HTTP validation for domain ownership, or updating the CA used for SSL for the maindomain
patch/v1/sites/{id}/maindomain
Path parameters
idinteger required
ID of the Site you are interacting with
Example:8880000888
Request body
Example request
{
"domain": "www.maindomain.com",
"certificate_authority": "google"
}Response
OK
Example response
{
"success": true,
"errors": [],
"messages": [],
"result": {
"validation_records": [
{
"name": "_acme-challenge.thebestreallylongdomainname.com",
"value": "m_K7UGMVceMWPcgPn3zpqEtUV7RpFDBUqvl-yZyAUNU"
}
],
"certificate_authority": "google"
}
}