upload_chapter_from_zip
Upload a manually-assembled chapter zip with audio, marks, and translations when the standard chapter creation method is not suitable. Supports updating an existing chapter if a chapter ID is provided.
Instructions
Break-glass: POST (or PUT if chapter_id given) a manually-assembled
chapter zip via /chapters/from-audio. Use this only when
create_chapter_from_marks isn't right — e.g., you have hand-patched
translations + alignments locally and need to push the exact bytes.
Args:
publication_id: Publication UUID.
audio_path: Absolute path to audio.mp3.
marks_path: Absolute path to marks.json.
marks_in_ms_path: Absolute path to marks_in_milliseconds.json.
translations_path: Absolute path to translations.json.
title: Localized chapter title (e.g. "0005 - Les plans").
language: Source lang code.
level: B1 | B2.
chapter_id: Optional — if given, PUTs (updates) instead of POSTs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| publication_id | Yes | ||
| audio_path | Yes | ||
| marks_path | Yes | ||
| marks_in_ms_path | Yes | ||
| translations_path | Yes | ||
| title | Yes | ||
| language | Yes | ||
| level | Yes | ||
| chapter_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |