---
title: "Update a test group"
method: PATCH
path: "/v1/groups/{groupId}"
tags: ["groups"]
---

# Update a test group

`PATCH /v1/groups/{groupId}`

Update name, runMode, or prepTestId on a test group.

## Path parameters

- `groupId` string, uuid, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `name` string
  - `runMode` 'concurrent' | 'sequential'
  - `prepTestId` string, uuid, nullable — Web test that runs first and saves its browser session. Any web test in the project qualifies; it does not have to be a member of this group. Pass null to clear.

## Response `200`

Group updated

- GroupsUpdateATestGroupResponse200
  - `group` GroupDetail, required
    - `id` string, uuid, required
    - `name` string, required
    - `isDefault` boolean, required
    - `runMode` 'concurrent' | 'sequential', required
    - `prepTestId` string, uuid, nullable, required
    - `projectId` string, uuid, required
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400` — Bad Request - Invalid input parameters
- `401` — Unauthorized - Invalid or missing API key
- `429` — Too Many Requests - Usage limit exceeded
- `500` — Internal Server Error
- `504` — Gateway Timeout - Test execution exceeded time limit

---

[API](https://skmtc.net/tester/apis/testerarmy-api.md) · [All operations](https://skmtc.net/tester/apis/testerarmy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tester/testerarmy-api/versions/d0302b4c4e0e/schema)
