Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

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]

 

Body PARAM

Key Datatype Required Description 
workspace
string (Required) The workspace ID in which to fork the environment.



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

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



Curl
curl -X POST 'https://api.getpostman.com/environments/environmentUid/forks?workspace=<string>?workspace=<string>' -d '{"forkName":"forkLabel"}'

ENDPOINTS