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

# Create a group

`POST /api/public/organizations/{orgId}/groups`

## Request

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

Creates a new group within an organization. Group names are unique within an organization, compared case-insensitively; a duplicate name returns 409. Requires admin access to the organization.

## Path parameters

- `orgId` string, required: Organization ID

## Request body

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

## Response `201`

Group created 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 - Organization 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)
