> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/api-reference/endpoints/agency-hosting/domains/change-website-domain.md).

# Change 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.

{% openapi src="<https://developers.hostinger.com/openapi/openapi.json>" path="/api/agency-hosting/v1/websites/{website\_uid}/domains/{from\_domain}" method="put" %}
<https://developers.hostinger.com/openapi/openapi.json>
{% endopenapi %}
