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
Example request
{
"from_environment": "live",
"from_url": "https://live-example.pantheonsite.io",
"to_url": "https://dev-example.pantheonsite.io"
}Response
Example response
{
"active_description": "Creating database backup",
"id": "12345678-1234-1234-1234-123456789012",
"number_of_tasks": 5
}