Import PGN chapters
Requires OAuth scope:
study:write- You must be a contributor to the study.
- Multiple games in the PGN will create multiple chapters.
- Maximum number of chapters per study is enforced.
- This endpoint is rate limited based on the number of chapters being imported.
Path Parameters
The study ID (8 characters)
Request Body
Send asapplication/x-www-form-urlencoded:
Name for the chapter. If importing multiple games, only the first chapter will use this name. Other chapters will use names from the PGN Event tag or a default name.Maximum length: 100 characters
The PGN content to import. Can contain one or more games separated by blank lines.Supports:
- Standard PGN format
- Multiple games (each becomes a separate chapter)
- Comments and variations
- PGN tags (Event, Site, Date, etc.)
- Clock annotations
- Evaluation annotations
Chapter orientation. One of:
auto- Automatic based on the gamewhite- Always show from white’s perspectiveblack- Always show from black’s perspective
Chess variant. One of:
standardchess960crazyhouseantichessatomichordekingOfTheHillracingKingsthreeCheck
Chapter mode. One of:
normal- Standard analysispractice- Practice mode (repeatable training)gamebook- Interactive lesson formatconceal- Conceal future moves
If
true, the first imported chapter becomes the new default chapter when opening the study.If
true, moves the study participants to the new chapter(s).Response
Returns information about the imported chapters.Array of imported chapter previews
Error message if the import partially failed

