End live capture
/v1/events/{event_id}/live/endScope event_edit
The operator pressed Stop.
Without this the browser path had no way to say a capture had finished, and only the
HMAC stream.ended webhook — which belongs to the edge-relay design, not to browser
capture — ever ended one. The consequences were invisible at the desk and total
afterwards: the capture stayed "live" forever, the streamed minutes were never priced,
and compact_live_transcript never ran, so no Transcript was created and the session
showed an editor nothing at all in Review. The capture appeared to work perfectly and
then produced nothing anyone could open.
session_id is REQUIRED for the same reason it is on /segments: ending the wrong room's capture at a multi-room event is not recoverable by retrying.
Idempotent, because a browser will retry and an operator will press Stop twice.
reason and hidden_seconds come from the capture page and are logged, not stored: a
capture that stopped early used to leave nothing to say why. "left-page" means the page
closed or navigated away while live (the guards should make that rare); a long
hidden_seconds means the window sat behind another app, where browsers throttle pages.
Parameters
event_idstring (uuid) · pathRequiredsession_idstring (uuid) · queryRequiredreasonone of operator, left-page · queryhidden_secondsinteger · queryX-Capture-Writerstring · header