sites

Create Multidev Environment

Creates a new multidev environment for a site.

post/v0/sites/{site_id}/environments

Path parameters

site_idstring required

Site UUID

Request body

clone_databaseboolean

Whether to clone the database from source environment

clone_filesboolean

Whether to clone files from source environment

environment_namestring required

Name of the new multidev environment

from_environmentstring required

Source environment to clone from

Example request

{
  "clone_database": true,
  "clone_files": true,
  "environment_name": "feature-branch",
  "from_environment": "dev"
}

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
}