Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5154fc8

Browse files
authoredNov 19, 2024··
[TF-2152] Copy Build to a folder rest api (#3014)
1 parent 5a4efd2 commit 5154fc8

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
 

Diff for: ‎docs/testfairy/api-reference/rest-api.md

+41
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,47 @@ Delete a specific build. When all builds of a project are deleted, the project i
212212

213213
---
214214

215+
### Copy a Specific Build to a Folder
216+
217+
<details>
218+
<summary><span className="api post">POST</span><code>/api/1/projects/&#123;project-id&#125;/builds/&#123;build-id&#125;/copy</code></summary>
219+
<p></p>
220+
221+
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.
222+
#### Parameters
223+
224+
<table id="table-api">
225+
<tbody>
226+
<tr>
227+
<td><code>folder_name</code></td>
228+
<td><p><small>| REQUIRED | STRING |</small></p><p>The name or path of the target folder. Examples: Folder1 or /Project1/Folder1.</p></td>
229+
</tr>
230+
</tbody>
231+
</table>
232+
233+
#### Responses
234+
235+
<table id="table-api">
236+
<tbody>
237+
<tr>
238+
<td><code>200</code></td>
239+
<td colSpan='2'>Success.</td>
240+
</tr>
241+
</tbody>
242+
</table>
243+
244+
```json title="Sample Response"
245+
{
246+
"status": "ok",
247+
"build_id": "1000",
248+
"folder_path": "/Project1/Folder1"
249+
}
250+
```
251+
252+
</details>
253+
254+
---
255+
215256
### Download the Uploaded Artifact
216257

217258
<details>

0 commit comments

Comments
 (0)
Please sign in to comment.