diff --git a/docs/testfairy/api-reference/rest-api.md b/docs/testfairy/api-reference/rest-api.md index 1f38a51f91..ddda477522 100644 --- a/docs/testfairy/api-reference/rest-api.md +++ b/docs/testfairy/api-reference/rest-api.md @@ -212,6 +212,47 @@ Delete a specific build. When all builds of a project are deleted, the project i --- +### Copy a Specific Build to a Folder + +
+POST/api/1/projects/{project-id}/builds/{build-id}/copy +

+ +Use this endpoint to copy a specific build to a specified folder. You can either create a new folder or copy the build to an existing one. +#### Parameters + + + + + + + + +
folder_name

| REQUIRED | STRING |

The name or path of the target folder. Examples: Folder1 or /Project1/Folder1.

+ +#### Responses + + + + + + + + +
200Success.
+ +```json title="Sample Response" +{ + "status": "ok", + "build_id": "1000", + "folder_path": "/Project1/Folder1" +} +``` + +
+ +--- + ### Download the Uploaded Artifact