Skip to content

Commit

Permalink
Merge branch 'main' into visual-native-beta-removal
Browse files Browse the repository at this point in the history
  • Loading branch information
marstupa authored Nov 19, 2024
2 parents 6a09b02 + 5154fc8 commit 225cee7
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions docs/testfairy/api-reference/rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

<details>
<summary><span className="api post">POST</span><code>/api/1/projects/&#123;project-id&#125;/builds/&#123;build-id&#125;/copy</code></summary>
<p></p>

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

<table id="table-api">
<tbody>
<tr>
<td><code>folder_name</code></td>
<td><p><small>| REQUIRED | STRING |</small></p><p>The name or path of the target folder. Examples: Folder1 or /Project1/Folder1.</p></td>
</tr>
</tbody>
</table>

#### Responses

<table id="table-api">
<tbody>
<tr>
<td><code>200</code></td>
<td colSpan='2'>Success.</td>
</tr>
</tbody>
</table>

```json title="Sample Response"
{
"status": "ok",
"build_id": "1000",
"folder_path": "/Project1/Folder1"
}
```

</details>

---

### Download the Uploaded Artifact

<details>
Expand Down

0 comments on commit 225cee7

Please sign in to comment.