---
title: "Edit a group"
method: PATCH
path: "/groups/{id}"
tags: ["Groups"]
---

# Edit a group

`PATCH /groups/{id}`

Modify the representation of a group by changing only the specified attributes.
Unspecified attributes are left untouched.
Note: Editing a dynamic group is not possible from the API.

## Path parameters

- `id` integer, required

## Request body

- GroupPatchInput
  - `title` string — The name of the group
  - `isPublic` boolean — Should the group be a public group or not. See our documentation for the difference between the two types: https://support.cyberimpact.com/articles/63?l=en_ca#publicvsprivategroup

## Response `200`

The modified group

- Group
  - `id` integer
  - `title` string
  - `isPublic` boolean
  - `membersCount` integer
  - `mailingsCount` integer
  - `createdOn` string
  - `isDynamic` boolean

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Group not found

---

[API](https://skmtc.net/cyberimpact/apis/cyberimpact-api.md) · [All operations](https://skmtc.net/cyberimpact/apis/cyberimpact-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cyberimpact/cyberimpact-api/revisions/bf0b51ee8e8a/schema)
