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

# GET /api/testStep/groupBy

`GET /api/testStep/groupBy`

Group TestSteps by fields

## Response `200`

Successful operation

- object
  - `data` TestStepGroupByOutputType[], required — The Prisma response data serialized with superjson
    - `id` string, required
    - `order` number, required
    - `action` string, required
    - `status` string, required
    - `screenshotUrl` string, nullable
    - `testRunId` string, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `_count` TestStepCountAggregateOutputType
      - `id` integer, required
      - `order` integer, required
      - `action` integer, required
      - `status` integer, required
      - `screenshotUrl` integer, required
      - `testRunId` integer, required
      - `createdAt` integer, required
      - `updatedAt` integer, required
      - `_all` integer, required
    - `_avg` TestStepAvgAggregateOutputType
      - `order` number, nullable
    - `_sum` TestStepSumAggregateOutputType
      - `order` number, nullable
    - `_min` TestStepMinAggregateOutputType
      - `id` string, nullable
      - `order` number, nullable
      - `action` string, nullable
      - `status` string, nullable
      - `screenshotUrl` string, nullable
      - `testRunId` string, nullable
      - `createdAt` string, date-time, nullable
      - `updatedAt` string, date-time, nullable
    - `_max` TestStepMaxAggregateOutputType
      - `id` string, nullable
      - `order` number, nullable
      - `action` string, nullable
      - `status` string, nullable
      - `screenshotUrl` string, nullable
      - `testRunId` 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)
