---
title: "Update group. Only available to group owner."
method: PATCH
path: "/groups/v1/groups/{groupId}"
tags: ["groupService"]
---

# Update group. Only available to group owner.

`PATCH /groups/v1/groups/{groupId}`

Update group. Only available to group owner.

## Request body

- object
  - `name` string, required
  - `groupType` string, required — Available values - public, private, secret.
  - `description` string
  - `groupTheme` string
  - `ownerId` string — 1
  - `moderatorsIds` string[]
  - `usersIds` string[]
  - `archival` boolean — true or false

## Response `200`

OK

- Group
  - `id` integer
  - `name` string
  - `groupType` string
  - `ownerId` string
  - `archived` boolean
  - `description` string
  - `groupTheme` string
  - `logo` string
  - `enableColorTheme` boolean
  - `themeSettings` object
    - `bgColor` string
    - `iconColor` string
    - `icon` string
    - `enablePattern` boolean
  - `moderatorsIds` string[]
  - `usersIds` string[]

## Other responses

- `401` — Access token is missing or invalid
- `403` — Forbidden

---

[API](https://skmtc.dev/uspacy/apis/uspacy-api-2.md) · [All operations](https://skmtc.dev/uspacy/apis/uspacy-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/uspacy/uspacy-api-2/revisions/c3f48fd1c26b/schema)
