---
title: "Update Group"
method: PUT
path: "/v2/groups/{id}"
tags: ["Group API"]
---

# Update Group

`PUT /v2/groups/{id}`

Update an existing group.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string, nullable
  - `userIds` string[]

## Response `200`

Success

- SvauthPublicUpdateGroupResponse
  - `data` SvauthPublicGroup
    - `id` string
    - `name` string
    - `organizationId` string
    - `createdAt` string, date-time — A timestamp in RFC 3339 format (e.g., "2025-01-15T01:30:15Z").
    - `deletedAt` string, date-time — A timestamp in RFC 3339 format (e.g., "2025-01-15T01:30:15Z").
    - `userIds` string[]

## Other responses

- `default` — Error

---

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