---
title: "Set or clear a Group Coaching topic for a session number"
method: PUT
path: "/cohorts/{cohortId}/session-number-configs/group-coaching/topic"
tags: ["SessionNumberConfig"]
---

# Set or clear a Group Coaching topic for a session number

`PUT /cohorts/{cohortId}/session-number-configs/group-coaching/topic`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/session-number-configs/group-coaching/topic`
- Auth: none declared

Upserts the topic at the session-number level for group_coaching modality. The computed topic on each session is `session.topic_override ?? session_number_config.topic ?? topics.name(via topic_id) ?? null`, so propagation happens at read time — sessions with an explicit topic_override are untouched.

## Path parameters

- `cohortId` string, uuid, required

## Request body

- object
  - `session_number` integer, required
  - `topic` string, nullable

## Response `200`

Topic saved; returns PropagationResult

- PropagationResult
  - `config` SessionNumberConfig
    - `id` string, uuid
    - `cohort_id` string, uuid
    - `modality` 'group_coaching' | 'one_on_one'
    - `session_number` integer
    - `topic` string, nullable: Free-text topic; Group Coaching only
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `sessions_updated` integer
  - `sessions_skipped_due_to_override` integer
  - `sessions_skipped_due_to_scheduling` integer

## Other responses

- `401`: Unauthorized
- `404`: Cohort not found
- `422`: Validation error

---

[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)
