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
string
required
The study ID (8 characters)
Request Body
Send asapplication/x-www-form-urlencoded:
string
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
string
required
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
string
default:"auto"
Chapter orientation. One of:
auto- Automatic based on the gamewhite- Always show from white’s perspectiveblack- Always show from black’s perspective
string
default:"standard"
Chess variant. One of:
standardchess960crazyhouseantichessatomichordekingOfTheHillracingKingsthreeCheck
string
default:"normal"
Chapter mode. One of:
normal- Standard analysispractice- Practice mode (repeatable training)gamebook- Interactive lesson formatconceal- Conceal future moves
boolean
default:"false"
If
true, the first imported chapter becomes the new default chapter when opening the study.boolean
default:"true"
If
true, moves the study participants to the new chapter(s).Response
Returns information about the imported chapters.array
Array of imported chapter previews
string
Error message if the import partially failed

