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.

Request Params

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

Request Body

{"label"=>"{{collectionForkName}}"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

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