---
title: "Update a group"
method: PATCH
path: "/api/public/organizations/{orgId}/groups/{id}"
tags: ["Groups"]
---

# Update a group

`PATCH /api/public/organizations/{orgId}/groups/{id}`

## Request

- Base URL: `https://charts.basedash.com`
- URL: `https://charts.basedash.com/api/public/organizations/{orgId}/groups/{id}`
- Auth: HTTP bearer

Updates an existing group. Renaming a group to a name another group in the organization already uses (compared case-insensitively) returns 409. Requires admin access to the organization.

## Path parameters

- `orgId` string, required: Organization ID
- `id` string, required: Group ID

## Request body

- object
  - `name` string: Name of the group. Unique within the organization, compared case-insensitively.
  - `description` string, nullable: Optional description of the group

## Response `200`

Group updated successfully

- object
  - `data` GroupResponse, required
    - `id` string, required: Group ID
    - `createdAt` string, date-time, required: Group creation timestamp
    - `updatedAt` string, date-time, required: Group last update timestamp
    - `name` string, required: Name of the group
    - `description` string, nullable, required: Description of the group
    - `organizationId` string, required: Organization ID
    - `memberCount` integer, required: Number of active organization members currently in the group

## Other responses

- `400`: Bad request - Invalid JSON body or validation error
- `401`: Unauthorized - Missing or invalid API key
- `404`: Not found - Group not found or no admin access
- `409`: Conflict - Another group in the organization has the same name (compared case-insensitively)
- `429`: Rate limit exceeded - Too many requests
- `500`: Internal server error

---

[API](https://skmtc.dev/basedash/apis/basedash-public-api.md) - [All operations](https://skmtc.dev/basedash/apis/basedash-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/basedash/apis/basedash-public-api/revisions/efb9d40bc6f7?raw)
