---
title: "Change website domain"
method: PUT
path: "/api/agency-hosting/v1/websites/{website_uid}/domains/{from_domain}"
tags: ["Agency Hosting: Domains"]
---

# Change website domain

`PUT /api/agency-hosting/v1/websites/{website_uid}/domains/{from_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.

## Path parameters

- `website_uid` string, required
- `from_domain` string, required

## Request body

- AgencyHostingV1DomainsChangeDomainRequest
  - `domain` string, nullable, required — New domain to assign to the website. Set to null to revert to the temporary domain.

## Response `200`

Success empty response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

## Changes

- **2026-08-13** `5a5a54ce5eb4` — 1 info
  - api operation id `agency-hosting_changeAgencyPlanWebsiteDomainV1` removed and replaced with `agency-hosting_changeWebsiteDomainV1`
- **2026-07-10** `4225b85b62f6` — 1 info
  - endpoint added
- **2026-06-09** `d05574986eb1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/hostinger/apis/hostinger-api/changes/api/agency-hosting/v1/websites/:website_uid/domains/:from_domain/put.md)

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/75f6fb63f779/schema)
