---
title: "Assign a participant to a group"
method: POST
path: "/cohorts/{cohortId}/groups/{groupId}/members"
tags: ["Groups"]
---

# Assign a participant to a group

`POST /cohorts/{cohortId}/groups/{groupId}/members`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/groups/{groupId}/members`
- Auth: none declared

Adds a participant to the group, removing them from any other group in the same cohort

## Path parameters

- `cohortId` string, uuid, required
- `groupId` string, uuid, required

## Request body

- object
  - `userId` string, uuid, required

## Response `200`

Participant assigned to group

## Other responses

- `400`: User is not a participant in this cohort
- `404`: Cohort or group not found

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
