Environments

Clone an environment

Changed on

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

Request

  • Base URL
    https://us.api.flexprice.io/v1
  • URL
    https://us.api.flexprice.io/v1/environments/{id}/clone
  • Auth
    API key in header x-api-key

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

Changes

    • warning

      added the new not_implemented enum value to the response property for the response status

    • warning

      added the new not_implemented enum value to the response property for the response status

    • warning

      added the new not_implemented enum value to the response property for the response status

    • breaking

      the response's body type changed from no type to object for status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status