Clone a specific site.
If successful, this endpoint will return a 200 OK status.
The following arguments are supported for this endpoint.
| Name | Type | Default Value |
|---|---|---|
|
name Required The name for the new site |
String | None |
|
subdomain The subdomain for the new site |
String | None |
|
standalone Required The type of the cloned site |
Boolean | None |
|
htpasswd_enabled Whether onr not htpasswd should be enabled |
Boolean | None |
|
site Required |
Site Lookup | None |
The following errors may occur during this request.
| Details | HTTP status |
|---|---|
|
You have reached your maximum number of sites. Please upgrade your package to add new sites. |
422 Unprocessable Entity |
|
No site was found matching any of the criteria provided in the arguments |
404 Not Found |
|
A validation error occurred with the object that was being created/updated/deleted |
422 Unprocessable Entity |
When the request is successful, you can expect an object matching the specification below to be returned.
{ site: Site { id: Integer name: String subdomain: String parent_id: Integer? created_at: Unix Timestamp ssh_enabled: Boolean cdn_enabled: Boolean cdn_active_domain: String? onyx_domain: String version: String? php_version: SitePHPVersionEnum debug_mode: Boolean provision_status: SiteProvisioningStatusEnum } }