---
title: "Create a test group"
method: POST
path: "/v1/groups"
tags: ["groups"]
---

# Create a test group

`POST /v1/groups`

Create a test group in a project. Capped at 20 groups per project.

## Headers

- `Authorization` string, required

## Request body

- object
  - `projectId` string, required — Project ID
  - `name` string, required
  - `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.

## Response `201`

Group created

- GroupsCreateATestGroupResponse201
  - `group` V1GroupsPostResponsesContentApplicationJsonSchemaGroup, required
    - `id` string, uuid, required
    - `name` string, required
    - `isDefault` boolean, required
    - `runMode` 'concurrent' | 'sequential', required
    - `prepTestId` string, uuid, nullable, required
    - `projectId` string, uuid, required

## Other responses

- `400` — Bad Request - Invalid input parameters
- `401` — Unauthorized - Invalid or missing API key
- `404` — Not Found - Resource does not exist or is not accessible
- `429` — Too Many Requests - Usage limit exceeded
- `500` — Internal Server Error
- `504` — Gateway Timeout - Test execution exceeded time limit

## Changes

- **2026-08-22** `bf198f94879a` — 1 breaking, 1 warning
  - the `name` request property's minLength was increased from `0` to `1`
  - the `name` request property's maxLength was set to `255`

[Change history](https://skmtc.dev/tester/apis/testerarmy-api/changes/v1/groups/post.md)

---

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