---
title: "Add a member to a group"
method: POST
path: "/api/public/organizations/{orgId}/groups/{id}/members"
tags: ["Groups"]
---

# Add a member to a group

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

## Request

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

Adds an active organization member or pending invite to a group. Requires admin access to the organization.

## Path parameters

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

## Request body

- object
  - `memberId` string, required: Organization member ID to add to the group

## Response `201`

Member added to group successfully

- object
  - `data` GroupMembershipResponse, required
    - `id` string, required: Group membership ID
    - `createdAt` string, date-time, required: Group membership creation timestamp
    - `groupId` string, required: Group ID
    - `memberId` string, required: Organization member ID
    - `organizationId` string, required: Organization ID

## Other responses

- `400`: Bad request - Invalid JSON body or validation error
- `401`: Unauthorized - Missing or invalid API key
- `404`: Not found - Group/member not found or no admin access
- `409`: Conflict - Member is already in the group
- `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)
