For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Change website domain

put

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.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
website_uidstringRequired

Agency Plan website UID

Example: zpwlGlp19
from_domainstringRequired

Current domain name to change from

Example: old.example.com
Body
domainstring · nullableRequired

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

Example: new.example.com
Responses
200

Success empty response

application/json
messagestringOptionalExample: Request accepted
put/api/agency-hosting/v1/websites/{website_uid}/domains/{from_domain}
PUT /api/agency-hosting/v1/websites/{website_uid}/domains/{from_domain} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 28

{
  "domain": "new.example.com"
}
{
  "message": "Request accepted"
}

Last updated

Was this helpful?