---
title: "Merge other groups into this one: their fingerprints route here, so their future events land here, and their counts are added to this group's."
method: POST
path: "/projects/{project_id}/error-groups/{group_id}/merge"
tags: ["error-tracking"]
---

# Merge other groups into this one: their fingerprints route here, so their future events land here, and their counts are added to this group's.

`POST /projects/{project_id}/error-groups/{group_id}/merge`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/error-groups/{group_id}/merge`
- Auth: HTTP bearer

Stored events keep the group they were ingested into, so nothing is
rewritten and unmerging restores both groups exactly.

## Path parameters

- `project_id` integer, required
- `group_id` integer, required

## Request body

- MergeErrorGroupsRequest: Request body for `POST .../error-groups/{group_id}/merge`. The path group is the one that survives.
  - `source_group_ids` integer[], required: Groups to merge into the path group; at most 50 per request.

## Response `200`

Groups merged

- MergeErrorGroupsResponse: Result of a merge.
  - `merged_group_ids` integer[], required
  - `moved_fingerprints` integer, required: Fingerprints now routing to the surviving group.
  - `target_group_id` integer, required: The group that survived; future events of every merged fingerprint land here.
  - `total_count` integer, required: Events the surviving group accounts for after the merge.

## Other responses

- `400`: Invalid selection
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: A named group is not in this project
- `409`: A named group is already merged, or has groups merged into it
- `500`: Internal server error

## Changes

- **2026-11-20** `89a5fa242f36`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/error-groups/:group_id/merge/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
