Sites

Duplicates a site from another given site.

post/sites/{siteId}/actions/duplicate

Request

Path parameters

siteIdstring required
Example:12345678-1234-1234-1234-123456789012

Unique identifier for the site

Request body

environment_mappingstring[] required

Array of environment mappings. You must provide exactly one environment mapping. Each entry maps a source environment ID to a target environment ID, separated by a colon.

site_namestring required

Machine name for the duplicated site. Must start with a lowercase letter and contain only lowercase letters and numbers. Maximum 14 characters.

site_labelstring required

Human-readable label for the duplicated site. Must only contain letters, numbers, and spaces. Maximum 50 characters.

site_idstring uuid

An optional explicit UUID for the new duplicated site. A UUID is generated automatically if omitted.

hook_argumentstring

Optional hook argument to pass to the duplication process.

Example request

{
  "environment_mapping": [
    "0ebce493-9d09-479d-a9a8-138a206fa687:a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  ],
  "site_name": "dupsite",
  "site_label": "Duplicated Site",
  "site_id": "f1a2b3c4-d5e6-7890-abcd-ef1234567890",
  "hook_argument": "--verbose"
}

Response

Site duplication started

_embeddedobject

Embedded resources (optional)

message'Site duplication started.' required

Confirmation message

Example response

{
  "_links": {
    "self": {
      "href": "https://api.acquia.com/v3/resources/1"
    }
  }
}

Changes

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