v52

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-03269339953.6 KB
Agency Hosting: Domains

Change Agency Plan website domain

Changes the primary domain for an Agency Plan website.

Provide the current domain in the path and the new domain in the request body. Set domain to null to revert to the temporary domain.

put/api/agency-hosting/v1/websites/{website_uid}/domains/{from_domain}

Path parameters

website_uidstring required
Example:zpwlGlp19

Agency Plan website UID

from_domainstring required
Example:old.example.com

Current domain name to change from

Request body

domainstring nullable required

New domain to assign to the website. Set to null to revert to the temporary domain.

Example request

{
  "domain": "new.example.com"
}

Response

Success empty response

messagestring

Example response

{
  "message": "Request accepted"
}