---
title: "Update existing group"
method: POST
path: "/change-group"
---

# Update existing group

`POST /change-group`

Allows you to modify an existing group by updating its name, description, or changing the members in the group. **To keep existing members in the group, you must include their IDs in the list.**

**Parameters:**

-   `companyKey` _(string, required)_ - The company's secret key.
-   `groupId` _(string, required)_ – The unique identifier of the group.
-   `name` _(string, optional)_ – The name of the new group.
-   `description` _(string, optional)_ – A description for the group.
-   `memberIds` _(array of strings, optional)_ – A list of user IDs to be added or removed from the group. To keep existing members in the group, you must include their IDs in the list.

## Request body

- ChangeGroup
  - `companyKey` string
  - `groupId` string
  - `name` string
  - `description` string
  - `memberIds` string[]

## Response `200`

Success

- ChangeGroupResponse

## Other responses

- `400` — ArgumntError

---

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