Create a fork

POST {{baseUrl}}/environments/{{environmentUid}}/forks?workspace=<string>

Creates a [fork] from an existing environment into a workspace. Include the following properties in the request body:

  • forkName — A string value that contains the forked environment's [label]

Request Params

KeyDatatypeRequiredDescription
workspacestring(Required) The workspace ID in which to fork the environment.

Request Body

{"forkName"=>"{{forkLabel}}"}

RESPONSES

status: OK

{&quot;environment&quot;:{&quot;forkName&quot;:&quot;Test Fork&quot;,&quot;uid&quot;:&quot;12345678-0fcea3ba-abcf-49c3-9f48-669c208fef25&quot;,&quot;name&quot;:&quot;Testing Environment&quot;}}