---
title: "GET /api/testRun/groupBy"
method: GET
path: "/api/testRun/groupBy"
tags: ["testRun"]
---

# GET /api/testRun/groupBy

`GET /api/testRun/groupBy`

Group TestRuns by fields

## Response `200`

Successful operation

- object
  - `data` TestRunGroupByOutputType[], required — The Prisma response data serialized with superjson
    - `id` string, required
    - `status` string, required
    - `errorLog` string, nullable
    - `reportUrl` string, nullable
    - `testId` string, required
    - `executedById` string, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `_count` TestRunCountAggregateOutputType
      - `id` integer, required
      - `status` integer, required
      - `errorLog` integer, required
      - `reportUrl` integer, required
      - `testId` integer, required
      - `executedById` integer, required
      - `createdAt` integer, required
      - `updatedAt` integer, required
      - `_all` integer, required
    - `_min` TestRunMinAggregateOutputType
      - `id` string, nullable
      - `status` string, nullable
      - `errorLog` string, nullable
      - `reportUrl` string, nullable
      - `testId` string, nullable
      - `executedById` string, nullable
      - `createdAt` string, date-time, nullable
      - `updatedAt` string, date-time, nullable
    - `_max` TestRunMaxAggregateOutputType
      - `id` string, nullable
      - `status` string, nullable
      - `errorLog` string, nullable
      - `reportUrl` string, nullable
      - `testId` string, nullable
      - `executedById` string, nullable
      - `createdAt` string, date-time, nullable
      - `updatedAt` string, date-time, nullable
  - `meta` Meta — Meta information about the request or response
    - `serialization` unknown

## Other responses

- `400` — Invalid request
- `403` — Request is forbidden
- `422` — Request is unprocessable due to validation errors

---

[API](https://skmtc.dev/iris-networks/apis/my-awesome-api.md) · [All operations](https://skmtc.dev/iris-networks/apis/my-awesome-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/iris-networks/my-awesome-api/revisions/4cea49731f1e/schema)
