---
title: "Set group members"
method: POST
path: "/rooms/{id}/groups/{groupId}/members"
tags: ["Rooms"]
---

# Set group members

`POST /rooms/{id}/groups/{groupId}/members`

## Request

- Base URL: `https://dataroom.corgi.com/api/v1`
- URL: `https://dataroom.corgi.com/api/v1/rooms/{id}/groups/{groupId}/members`
- Auth: HTTP bearer

Add/remove by email; `add` create-or-moves, `remove` detaches. Scope: `datarooms:permissions`.

## Path parameters

- `id` string, required
- `groupId` string, required

## Request body

- object
  - `add` string[]
  - `remove` string[]

## Response `200`

Membership updated

## Other responses

- `400`: No emails
- `404`: Not found

---

[API](https://skmtc.dev/corgi/apis/dataroom-api.md) - [All operations](https://skmtc.dev/corgi/apis/dataroom-api/llms.txt) - [OpenAPI document](https://skmtc.dev/corgi/apis/dataroom-api/revisions/73f75ef04a00?raw)
