Skip to main content
POST
/
environments
/
{id}
/
clone
Clone an environment
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>"
}

Authorizations

x-api-key
string
header
required

Enter your API key in the format x-api-key <api-key>*

Path Parameters

id
string
required

Source Environment ID

Body

application/json

Clone configuration

name
string

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

target_environment_id
string

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
enum<string>
Available options:
development,
production

Response

Accepted

message
string
run_id
string
workflow_id
string