latestSwagger 2.02026-08-1095121164.0 KB

94758829689e

sites

Clone Environment Database

Clones the database from another environment.

post/v0/sites/{site_id}/environments/{env_id}/database/clone

Path parameters

site_idstring required

Site UUID

env_idstring required

Environment ID

Request body

clear_cacheboolean

Whether to clear cache after cloning

from_environmentstring required

Source environment to clone from

from_urlstring

Source URL for WordPress search-replace (optional, for WordPress sites)

to_urlstring

Target URL for WordPress search-replace (optional, for WordPress sites)

updatedbboolean

Whether to run database updates after cloning

Example request

{
  "from_environment": "live",
  "from_url": "https://live-example.pantheonsite.io",
  "to_url": "https://dev-example.pantheonsite.io"
}

Response

active_descriptionstring

Active description of the workflow

idstring required

Workflow ID

number_of_tasksinteger

Number of tasks in the workflow

Example response

{
  "active_description": "Creating database backup",
  "id": "12345678-1234-1234-1234-123456789012",
  "number_of_tasks": 5
}