---
title: "Update participants for a finalized session (MED-71)"
method: PUT
path: "/cohorts/{cohortId}/sessions/{sessionId}/participants"
tags: ["Sessions"]
---

# Update participants for a finalized session (MED-71)

`PUT /cohorts/{cohortId}/sessions/{sessionId}/participants`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/sessions/{sessionId}/participants`
- Auth: none declared

Add or remove participants from a finalized session. Updates calendar event and sends notifications.

## Path parameters

- `cohortId` string, uuid, required
- `sessionId` string, uuid, required

## Request body

- object
  - `add_user_ids` string[]: User IDs to add as participants
  - `remove_user_ids` string[]: User IDs to remove from participants

## Response `200`

Participants updated

- object
  - `added` integer
  - `removed` integer
  - `calendar_updated` boolean

## Other responses

- `400`: Bad request - session not finalized
- `401`: Unauthorized
- `404`: Session 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)
