---
title: "Update an error group. Mainly used for archiving error groups."
method: PATCH
path: "/v1/error-groups/{id}"
tags: ["Error Groups"]
---

# Update an error group. Mainly used for archiving error groups.

`PATCH /v1/error-groups/{id}`

Update an error group. Mainly used for archiving error groups.

## Path parameters

- `id` string, required

## Headers

- `x-checkly-account` string — Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

## Request body

- ErrorGroupPatch
  - `archiveForEver` boolean
  - `archivedUntilNextEvent` boolean

## Response `200`

Successful

- ErrorGroup
  - `id` string, required
  - `checkId` string, required
  - `errorHash` string, required — The hash of the cleaned error message for quicker deduplication.
  - `rawErrorMessage` string, nullable, required — The raw error message as recorded in a check result.
  - `cleanedErrorMessage` string, required — The cleaned and sanitized error message used for hashing and grouping.
  - `firstSeen` string, date, required
  - `lastSeen` string, date, required
  - `archivedUntilNextEvent` boolean, required
  - `rootCauseAnalyses` Attributes[]

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too Many Requests

---

[API](https://skmtc.net/checklyhq/apis/checkly-public-api.md) · [All operations](https://skmtc.net/checklyhq/apis/checkly-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/checklyhq/checkly-public-api/versions/9e903da4f3da/schema)
