---
title: "Persist coach in-session notes (AC9)"
method: PATCH
path: "/api/coach/sessions/{sessionId}/coach-notes"
tags: ["Coach Active Session"]
---

# Persist coach in-session notes (AC9)

`PATCH /api/coach/sessions/{sessionId}/coach-notes`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/api/coach/sessions/{sessionId}/coach-notes`
- Auth: HTTP bearer

Saves the coach's in-session notes (right panel WYSIWYG). HTML is
sanitized server-side via `sanitizeRichTextHtml` (same pipeline as
MED-793 leader notes). A plain-text mirror is derived and stored for
post-session search/preview.

## Path parameters

- `sessionId` string, uuid, required

## Request body

- object
  - `content_html` string, required: Raw HTML from the RichTextEditor; sanitized server-side.

## Response `200`

Saved

- object
  - `success` boolean
  - `data` object
    - `updated_at` string, date-time

## Other responses

- `400`: Bad body
- `401`: Unauthorized
- `403`: Coach not authorized for this session/group
- `404`: Session not found OR live_session_delivery flag off

---

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