Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Create a fork

POST {{baseUrl}}/collections/fork/{{collectionId}}?workspace=<string>

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

  • label — A string value that contains the fork's label.

 

Body PARAM

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



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status OK

{ "collection": { "id": "09547fef-a9a5-4e00-998b-aa563e8db69a", "name": "Test Collection", "fork": { "label": "Test Fork", "createdAt": "2022-06-16T19:51:44.069Z", "from": "12345678-12ece9e1-2abf-4edc-8e34-de66e74114d2" }, "uid": "12345678-09547fef-a9a5-4e00-998b-aa563e8db69a" } }



Curl
curl -X POST 'https://api.getpostman.com/collections/fork/collectionId?workspace=<string>?workspace=<string>' -H 'Content-Type: application/json' -d '{"label":"collectionForkName"}'

ENDPOINTS