---
title: "Update User Group"
method: PUT
path: "/userGroup2"
---

# Update User Group

`PUT /userGroup2`

Lets you update an existing user group details.

## Request body

- object
  - `id` integer, required — Unique ID of the user group.
  - `externalId` string, required — External ID of the group.
  - `groupName` string — Name of the group.
  - `maxGroupSize` integer — Maximum size (members) of the group.

## Response `200`

200

- union
  - object
    - `id` integer
    - `groupName` string
    - `maxGroupSize` integer
    - `warnings` unknown[]
      - unknown
  - object
    - `id` integer
    - `groupName` string
    - `maxGroupSize` integer
    - `extendedFields` object
      - `usergroup2_automation_extended_field` integer
    - `warnings` unknown[]
      - unknown

## Other responses

- `400` — 400

---

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