Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Environments-Forks

Number of APIs: 4


1. Get an environment's forks

GET {{baseUrl}}/environments/{{environmentUid}}/forks

Gets all of an environment's forked environments.



2. 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]



3. Pull source changes

POST {{baseUrl}}/environments/{{environmentUid}}/pulls

[Pulls] the changes from a parent (source) environment into the forked environment. Include the following in the request body:

  • source — A string value that contains the unique ID of the environment to pull data from.



4. Merge a fork

POST {{baseUrl}}/environments/{{environmentUid}}/merges

[Merges] a forked environment back into its parent environment. Include the following in the request body:

  • source — A string value that contains the source environment's unique ID to merge data from.
  • deleteSource — A boolean value that, if true, deletes the forked environment when it merges.



ENDPOINTS