Website

Clone a website to a new subdomain

Creates a copy of an existing website with a new subdomain. This operation migrates the website to a new location while preserving the original website.

post/v1/hosting/clone

Request

Headers

x-api-keystring required

API key for authentication

Request body

subdomainstring required

The new subdomain for the cloned website

website_idinteger required

The ID of the website to clone

regionstring required

The target region for the cloned website

Example request

{
  "subdomain": "pleased-adder-1",
  "website_id": 1269062,
  "region": "us-central1-c"
}

Response

Website clone operation started successfully

status'ok'

Operation status

Example response

{
  "status": "ok"
}

Changes

No recorded changes to this operation across all 1 revision of this API.