curl --request POST \
--url https://us.api.flexprice.io/v1/environments/{id}/clone \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"target_environment_id": "<string>",
"type": "development"
}
'{
"message": "<string>",
"run_id": "<string>",
"workflow_id": "<string>"
}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.
curl --request POST \
--url https://us.api.flexprice.io/v1/environments/{id}/clone \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"target_environment_id": "<string>",
"type": "development"
}
'{
"message": "<string>",
"run_id": "<string>",
"workflow_id": "<string>"
}Enter your API key in the format x-api-key <api-key>*
Source Environment ID
Clone configuration
Name of the new environment (required when target_environment_id is not provided)
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.
development, production