From d3133913ec96cac52471093dde16117efb275ddf Mon Sep 17 00:00:00 2001 From: simon-sarrafi Date: Fri, 22 Nov 2024 17:01:12 +0100 Subject: [PATCH] [TF-2155] Add and list groups (#3021) * [TF-2155] Add and list groups * [TF-2155] Add and list groups * [TF-2155] Add and list groups - minor correction --- docs/testfairy/api-reference/rest-api.md | 107 +++++++++++++++++++++++ 1 file changed, 107 insertions(+) diff --git a/docs/testfairy/api-reference/rest-api.md b/docs/testfairy/api-reference/rest-api.md index ddda477522..715673e703 100644 --- a/docs/testfairy/api-reference/rest-api.md +++ b/docs/testfairy/api-reference/rest-api.md @@ -219,6 +219,7 @@ Delete a specific build. When all builds of a project are deleted, the project i

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 @@ -660,6 +661,9 @@ Add a single or multiple testers to a specific group. Remove a single or multiple testers from a specific group. +

+**Note:** Groups without any members will be discarded. + #### Parameters
@@ -698,6 +702,109 @@ Remove a single or multiple testers from a specific group. +--- + +### List All Tester groups + +
+GET/api/1/testers/groups +

+ +List all tester groups in this account. + +#### Responses + +
+ + + + + + +
200Success.
+ +```json title="Sample Response" +{ + "status": "ok", + "groups": [ + { + "id": 14, + "name": "group1", + "testers": [ + [ + { + "email": "tester1@saucelabs.com" + }, + { + "email": "tester2@saucelabs.com" + }, + { + "email": "tester3@saucelabs.com" + } + ] + ] + }, + { + "id": 39, + "name": "group2", + "testers": [ + [ + { + "email": "tester1@saucelabs.com" + } + ] + ] + } + ] +} +``` + + + +--- + +### Create a Tester Group + +
+POST/api/1/testers/groups +

+ +Create a new tester group + +#### Parameters + + + + + + + + +
groupName

| REQUIRED | STRING |

Specify a group name.

+ +#### Responses + + + + + + + + +
200Success.
+ +```json title="Sample Response" +{ + "status": "ok", + "id": "40", + "name": "group3" +} +``` + +
+ +--- + ## Feedbacks ### Get Latest Recorded Feedbacks