v52

latestOpenAPI 3.0.1AGPL-3.0raw.githubusercontent.com2026-08-01255473862.7 KB
Environments

Clone an environment

Clone all published features and plans from the source environment into a target environment. If target_environment_id is provided, entities are cloned into that existing environment. Otherwise a new environment is created from name and type first.

post/environments/{id}/clone

Path parameters

idstring required

Source Environment ID

Request body

namestring

Name of the new environment (required when target_environment_id is not provided)

target_environment_idstring

TargetEnvironmentID is the ID of an existing environment to clone into (optional). When provided, Name and Type are ignored. When omitted, Name and Type are required.

type'development' | 'production'

Response

Accepted

messagestring
run_idstring
workflow_idstring