Cohorts
Update modality settings (coaching sub-type, AI features, commitment tracking)
MED-848 — Non-destructive update of a single modality's coaching sub-type, AI features toggle, Live Session Delivery gate, and (MED-1069) Commitment Tracking toggle. Used by the Edit Cohort flow.
Editability rules:
- ai_features_enabled is editable any time post-creation (AC8)
- coaching_sub_type is editable only until the modality is locked by
either of the following independent conditions (returns 400 once locked):
- MED-848 AC9 — invites_sent=true (session prep / announcement emails have already gone out for this modality).
- MED-955 AC1/3/5 — any session in the cohort has a designated session_leader_id (Coach Led / Peer Led leader has been assigned). Reported as: "Modality type cannot be changed after session leaders have been assigned."
- coaching_sub_type is only valid for modality_type='group_coaching'. Returns 400 otherwise.
Gated by the live_session_delivery feature flag (MED-886). When the flag is off the endpoint returns 404.
patch/cohorts/{id}/modalities/{modalityId}/settings
Request
- Base URLhttps://api.production.yourmedley.com
- AuthHTTP bearer
Path parameters
idstring uuid required
Cohort ID
modalityIdstring uuid required
Modality ID
Request body
Response
Modality settings updated
Changes
No recorded changes to this operation across all 1 revision of this API.